Skip to content

Commit

Permalink
test(csv-generate): fix types sync generate fn
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Oct 25, 2021
1 parent 496231d commit 24f867a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/csv-generate/test/api.types.sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ describe('API Types', () => {
describe('usage', () => {

it('sync with options as number', () => {
const generator: string = generateSync(1)
const generator: string = generate(1)
generator.should.be.a.String()
})

it('sync with options in string mode', () => {
const generator: string = generateSync({length: 1})
const generator: string = generate({length: 1})
generator.should.be.a.String()
})

it('sync with options in object mode', () => {
const generator: Array<Array<string>> = generateSync({length: 1, objectMode: true})
const generator: Array<Array<string>> = generate({length: 1, objectMode: true})
generator.should.be.an.Array()
})
})

describe('types', () => {
it('generate', () => {
const generator: string = generateSync(1)
const generator: string = generate(1)
return generator;
})
it('Options', () => {
Expand Down

0 comments on commit 24f867a

Please sign in to comment.