Skip to content

Commit

Permalink
Clean up minor flaws in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leoselig committed Apr 23, 2017
1 parent 8bedab3 commit ecbff83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/dynamicImport.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('import()', () => {
],
};

it('CFG should resolve the path based on the root config', () => {
it('should resolve the path based on the root config', () => {
const code = 'import("app").then(() => {}).catch(() => {});';
const result = transform(code, transformerOpts);

Expand Down Expand Up @@ -51,9 +51,9 @@ describe('import()', () => {
});

it('should handle an empty path', () => {
const code = 'import(\'\').then(() => {}).catch(() => {});';
const code = 'import("").then(() => {}).catch(() => {});';
const result = transform(code, transformerOpts);

expect(result.code).toBe('import(\'\').then(() => {}).catch(() => {});');
expect(result.code).toBe('import("").then(() => {}).catch(() => {});');
});
});

0 comments on commit ecbff83

Please sign in to comment.