Skip to content

Commit

Permalink
Add baselang parameter in files-creators tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Blyszcz committed Sep 11, 2018
1 parent c1e1610 commit 15b4c03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/cli/files-creators/files-creators.spec.ts
Expand Up @@ -10,14 +10,14 @@ describe('FileCreators', () => {
const filesCreators = new FilesCreators(fileCreatorsList);

it('executes save method on proper fileCreator', () => {
const result = filesCreators.save('', '.', 'test', 'ios');
const result = filesCreators.save('', '.', 'test', 'ios', '');

expect(result).toBe('test');
});

it('throws exception when there is no transformer', () => {
const type = 'xyz';

expect(() => filesCreators.save('', '.', 'test', type)).toThrow(`No support for ${type} data type`);
expect(() => filesCreators.save('', '.', 'test', type, '')).toThrow(`No support for ${type} data type`);
});
});

0 comments on commit 15b4c03

Please sign in to comment.