Skip to content

Commit

Permalink
update js error test
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Oct 12, 2023
1 parent 403af3a commit 6c11f1a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bindings/javascript/src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ test("error format contains newlines", async t => {
await zencode_exec(`a`);
} catch (e) {
const lines = e.logs.split('\n');

t.true(lines.includes('[W] Zencode text too short to parse'));
t.true(lines.includes('[W] Zencode is missing version check, please add: rule check version N.N.N'));
t.true(lines.includes('[!] Execution aborted with errors.'));
t.true(lines.includes('Zencode parser error'));
t.true(lines.includes('Zencode text too short to parse'));
}
})

Expand Down

0 comments on commit 6c11f1a

Please sign in to comment.