Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit f29e078

Browse files
Fix dialog verify test
1 parent a5e765e commit f29e078

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/dialog/test/commands/dialog/verify.test.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ describe('dialog:verify', () => {
2525
.stderr()
2626
.command(["dialog:verify", `${path.join(__dirname, './examples/root/*.dialog')}`, '--verbose'])
2727
.it('verify all', ctx => {
28-
expect(ctx.stderr.match(/DLG001/).length == 7, 'Wrong number of schema errors')
29-
expect(ctx.stderr.match(/DLG002/).length == 3, 'Wrong number of multiple definitions')
30-
expect(ctx.stderr.match(/DLG003/).length == 1, 'Wrong number of mising definitions')
31-
expect(ctx.stderr.match(/DLG004/).length == 1, 'Wrong number of type mismatches')
32-
expect(ctx.stderr.match(/DLG005/).length == 6, 'Wrong number of unsued ids')
28+
expect(ctx.stderr.match(/DLG001/)!.length == 7, 'Wrong number of schema errors')
29+
expect(ctx.stderr.match(/DLG002/)!.length == 3, 'Wrong number of multiple definitions')
30+
expect(ctx.stderr.match(/DLG003/)!.length == 1, 'Wrong number of mising definitions')
31+
expect(ctx.stderr.match(/DLG004/)!.length == 1, 'Wrong number of type mismatches')
32+
expect(ctx.stderr.match(/DLG005/)!.length == 6, 'Wrong number of unsued ids')
3333
expect(ctx.stdout).to.contain('4 files')
3434
expect(ctx.stderr)
3535
.to.contain('Warnings: 2')
3636
.to.contain('Errors: 12')
3737
})
3838
})
39-

0 commit comments

Comments
 (0)