Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

Commit

Permalink
Fix moduleNotFound transformers tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogelio Guzman committed Aug 16, 2016
1 parent 978f9c4 commit 223fbcf
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions test/unit/transformers/moduleNotFound.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ test('Sets the appropiate message', () => {
}).type).toEqual('module-not-found');
});

// test('Sets type to babel-syntax-error', () => {
// const error = { name: 'ModuleBuildError', message: 'SyntaxError' };
// expect(moduleNotFound(error).type).toEqual('babel-syntax-error');
// });
//
// test('Ignores other errors', () => {
// const error = { name: 'OtherError' };
// expect(moduleNotFound(error)).toEqual(error);
// });
test('Ignores other errors', () => {
const error = { name: 'OtherError' };
expect(moduleNotFound(error)).toEqual(error);
});

0 comments on commit 223fbcf

Please sign in to comment.