Skip to content

Commit a3efc62

Browse files
committed
output removed
1 parent e2f8829 commit a3efc62

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ node_modules
1010
cdt.iml
1111
**/.DS_Store
1212

13-
output/*.json
14-
output/*.avro
15-
output/*.avsc
13+
output
14+
output/**.json
15+
output/**.avro
16+
output/**.avsc
1617

1718
coverage/*.json
1819

test/commands/avro.test.ts

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,25 @@ describe('avro', () => {
6060
})
6161

6262

63-
// test
64-
// .stdout()
65-
// .command(['avro', '-f', 'test/resources/avro/person.avro', '-o', 'test/resources/avro/output/person.json','to_json'])
66-
// .it('if to_json commands run with success', ctx => {
67-
// expect(ctx.stdout).to.contain('success')
68-
// let buffer = readFileSync("test/resources/avro/output/person.json")
69-
// expect(buffer.toJSON()).to.contain()
70-
// })
63+
test
64+
.stdout()
65+
.command(['avro', '-f', 'test/resources/avro/person.avro', '-o', 'test/resources/avro/output/person.json','to_json'])
66+
.it('if to_json commands run with success', ctx => {
67+
expect(ctx.stdout).to.contain('success')
68+
})
69+
70+
test
71+
.stdout()
72+
.command(['avro', '-f', 'test/resources/avro/person.avro', '-o', 'test/resources/avro/output/person.csv','to_csv'])
73+
.it('if to_csv commands run with success', ctx => {
74+
expect(ctx.stdout).to.contain('success')
75+
})
7176

7277
test
7378
.stdout()
7479
.command(['avro', '-f', 'test/resources/avro/person.json', '-o', 'test/resources/avro/output/person.avro', '-t', 'test/resources/avro/person.avsc', 'to_avro'])
7580
.it('if to_avro commands run with success', ctx => {
7681
expect(ctx.stdout).to.contain('success')
7782
})
83+
7884
})

test/resources/avro/output/twitter.csv

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)