Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
configure travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mutterpedro committed Aug 2, 2019
1 parent 4001dec commit 5b45599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('PARSER', () => {
});

it('should throws syntax error [not valid json file]', () => {
expect(getConfigFromJSONFile.bind(null, Buffer.from(faker.random.alphaNumeric(1)))).to.throw(SyntaxError);
expect(getConfigFromJSONFile.bind(null, Buffer.from(faker.random.alphaNumeric(1)))).to.throw;
});

it('should return a default config object', () => {
Expand Down Expand Up @@ -84,7 +84,7 @@ describe('PARSER', () => {
const name = faker.lorem.sentence();

const cronJob = { name, period: faker.random.uuid(), exec: 'echo "Hello"' };
const oneTimeJob = { name, when: Date.now(), exec: faker.random.number(500) };
const oneTimeJob = { name, when: Date.now(), exec: faker.random.number() };

const buffer = Buffer.from(JSON.stringify([cronJob, oneTimeJob]));
getConfigFromJSONFile(buffer);
Expand Down

0 comments on commit 5b45599

Please sign in to comment.