Skip to content

Commit 1f9ec7c

Browse files
committed
[AVRO] - Added test for get_schema to write on console
Signed-off-by: ashish <[email protected]>
1 parent bc98743 commit 1f9ec7c

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

test/commands/avro.test.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,15 @@ describe('avro', () => {
4949
expect(ctx.stdout).to.contain('Schema file is not provided')
5050
})
5151

52-
/* TODO: why this tests is breaking */
53-
// test
54-
// .stdout()
55-
// .command(['avro', '-f', 'test/resources/avro/person.avro', 'get_schema'])
56-
// .it('if get_schema outputs to console', ctx => {
57-
// expect(ctx.stdout).to.contain('success')
58-
// })
52+
test
53+
.stdout()
54+
.command(['avro', '-f', 'test/resources/avro/person.avro', 'get_schema'])
55+
.it('if get_schema outputs to console', ctx => {
56+
setTimeout(() =>
57+
expect(ctx.stdout).to.contain('success')
58+
, 5000) // wait for it to write stuff on console
59+
})
5960

60-
// setTimeout(() => // TODO: can we remove it and check if we can resolve promise here
61-
// expect(ctx.stdout).to.contain(' [[email protected]] minified:6.5 kB gzip:2.6 kB')
62-
// , 5000) // proving 5 seconds just to be safe
6361

6462
test
6563
.stdout()
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)