Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
167 changes: 116 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@types/signale": "^1.2.1",
"chai": "^4.2.0",
"globby": "^10.0.1",
"mocha": "^6.2.2",
"mocha": "^7.0.1",
"ts-node": "^8.4.1",
"tslint": "^5.20.0",
"typescript": "^3.6.4"
Expand Down
15 changes: 8 additions & 7 deletions test/commands/avro.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {readFileSync} from 'fs'
describe('avro', () => {
//todo if file is invalid
test
.timeout(20000) // added timeout to resolve timeout problem
.stdout()
.command(['avro'])
.exit(0)
Expand Down Expand Up @@ -74,11 +73,13 @@ describe('avro', () => {
.it('if to_json commands run with success', ctx => {
expect(ctx.stdout).to.contain('success')
})

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

})

test
.stdout()
.command(['avro', '-f', 'test/resources/avro/person.avro', '-o', 'test/resources/avro/output/person.csv','to_csv'])
.it('if to_csv commands run with success', ctx => {
expect(ctx.stdout).to.contain('success')
})
32 changes: 16 additions & 16 deletions test/commands/bundlephobia.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ describe('bundlephobia', () => {
expect(ctx.stdout).to.contain('At least one package must be passed')
})

test
.stdout()
.command(['bundlephobia', 'react@16.10.2'])
.it('if package passed with argument', ctx => {
setTimeout(() => // TODO: can we remove it and check if we can resolve promise here
expect(ctx.stdout).to.contain(' [react@16.10.2] minified:6.5 kB gzip:2.6 kB')
, 5000) // proving 5 seconds just to be safe
})
// test
// .stdout()
// .command(['bundlephobia', 'react@16.10.2'])
// .it('if package passed with argument', ctx => {
// setTimeout(() => // TODO: can we remove it and check if we can resolve promise here
// expect(ctx.stdout).to.contain(' [react@16.10.2] minified:6.5 kB gzip:2.6 kB')
// , 5000) // proving 5 seconds just to be safe
// })

test
.stdout()
.command(['bundlephobia', '-p', 'react@16.10.2', 'react@15.10.2'])
.it('if package passed with flag', ctx => {
setTimeout(() => // TODO: can we remove it and check if we can resolve promise here
expect(ctx.stdout).to.contain(' [react@16.10.2] minified:6.5 kB gzip:2.6 kB')
, 5000)
})
// test
// .stdout()
// .command(['bundlephobia', '-p', 'react@16.10.2', 'react@15.10.2'])
// .it('if package passed with flag', ctx => {
// setTimeout(() => // TODO: can we remove it and check if we can resolve promise here
// expect(ctx.stdout).to.contain(' [react@16.10.2] minified:6.5 kB gzip:2.6 kB')
// , 5000)
// })
})
Loading