Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dzbo committed Aug 20, 2018
1 parent 4fc5069 commit 9a0654e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unit/yata-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,20 @@ describe('yata library', function() {
expect(validation).to.be.true;
expect(yata.format).to.equal('yml');
expect(yata.root).to.be.false;
expect(yata.stripEmpty).to.be.false;
expect(yata.outputPath).to.be.equal('translations');
});

it('passes validaiton when passing all params', function() {
const validation = yata.validateConfig('token', 'project', ['pl_PL'], 'json', true, 'locales');
const validation = yata.validateConfig('token', 'project', ['pl_PL'], 'json', true, 'locales', true);

expect(validation).to.be.true;
expect(yata.token).to.equal('token');
expect(yata.project).to.equal('project');
expect(yata.locales).to.deep.equal(['pl_PL']);
expect(yata.format).to.equal('json');
expect(yata.root).to.be.true;
expect(yata.stripEmpty).to.be.true;
expect(yata.outputPath).to.be.equal('locales');
});
});
Expand Down

0 comments on commit 9a0654e

Please sign in to comment.