Added extra test for error handling
This commit is contained in:
parent
a64b32d12c
commit
15ecb19c65
1 changed files with 5 additions and 0 deletions
|
|
@ -19,6 +19,11 @@ describe("Error handling", () => {
|
|||
test("errors array is empty on a successful test", () => {
|
||||
expect(getErrors("pw.expect(1).toBe(1)")).toStrictEqual([])
|
||||
})
|
||||
test("throws error at a variable which is not declared", () => {
|
||||
expect(() => {
|
||||
runTestScriptWithVariables("someVariable")
|
||||
}).toThrow()
|
||||
})
|
||||
})
|
||||
|
||||
describe("toBe", () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue