Skip to content

Commit efcfcc3

Browse files
authored
Merge branch 'release/release-v0.1' into greenkeeper/@types/chai-4.2.9
2 parents 4cef5d9 + a0becc0 commit efcfcc3

File tree

7 files changed

+142
-78
lines changed

7 files changed

+142
-78
lines changed

package-lock.json

Lines changed: 116 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@types/signale": "^1.2.1",
4747
"chai": "^4.2.0",
4848
"globby": "^10.0.1",
49-
"mocha": "^6.2.2",
49+
"mocha": "^7.0.1",
5050
"ts-node": "^8.4.1",
5151
"tslint": "^5.20.0",
5252
"typescript": "^3.6.4"

test/commands/avro.test.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {readFileSync} from 'fs'
44
describe('avro', () => {
55
//todo if file is invalid
66
test
7-
.timeout(20000) // added timeout to resolve timeout problem
87
.stdout()
98
.command(['avro'])
109
.exit(0)
@@ -74,11 +73,13 @@ describe('avro', () => {
7473
.it('if to_json commands run with success', ctx => {
7574
expect(ctx.stdout).to.contain('success')
7675
})
76+
77+
test
78+
.stdout()
79+
.command(['avro', '-f', 'test/resources/avro/person.avro', '-o', 'test/resources/avro/output/person.csv','to_csv'])
80+
.it('if to_csv commands run with success', ctx => {
81+
expect(ctx.stdout).to.contain('success')
82+
})
83+
7784
})
7885

79-
test
80-
.stdout()
81-
.command(['avro', '-f', 'test/resources/avro/person.avro', '-o', 'test/resources/avro/output/person.csv','to_csv'])
82-
.it('if to_csv commands run with success', ctx => {
83-
expect(ctx.stdout).to.contain('success')
84-
})

test/commands/bundlephobia.test.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ describe('bundlephobia', () => {
1111
expect(ctx.stdout).to.contain('At least one package must be passed')
1212
})
1313

14-
test
15-
.stdout()
16-
.command(['bundlephobia', '[email protected]'])
17-
.it('if package passed with argument', ctx => {
18-
setTimeout(() => // TODO: can we remove it and check if we can resolve promise here
19-
expect(ctx.stdout).to.contain(' [[email protected]] minified:6.5 kB gzip:2.6 kB')
20-
, 5000) // proving 5 seconds just to be safe
21-
})
14+
// test
15+
// .stdout()
16+
// .command(['bundlephobia', '[email protected]'])
17+
// .it('if package passed with argument', ctx => {
18+
// setTimeout(() => // TODO: can we remove it and check if we can resolve promise here
19+
// expect(ctx.stdout).to.contain(' [[email protected]] minified:6.5 kB gzip:2.6 kB')
20+
// , 5000) // proving 5 seconds just to be safe
21+
// })
2222

23-
test
24-
.stdout()
25-
.command(['bundlephobia', '-p', '[email protected]', '[email protected]'])
26-
.it('if package passed with flag', ctx => {
27-
setTimeout(() => // TODO: can we remove it and check if we can resolve promise here
28-
expect(ctx.stdout).to.contain(' [[email protected]] minified:6.5 kB gzip:2.6 kB')
29-
, 5000)
30-
})
23+
// test
24+
// .stdout()
25+
// .command(['bundlephobia', '-p', '[email protected]', '[email protected]'])
26+
// .it('if package passed with flag', ctx => {
27+
// setTimeout(() => // TODO: can we remove it and check if we can resolve promise here
28+
// expect(ctx.stdout).to.contain(' [[email protected]] minified:6.5 kB gzip:2.6 kB')
29+
// , 5000)
30+
// })
3131
})

0 commit comments

Comments
 (0)