Browse Source

add test for #53

contingency-plan
Rich Harris 10 years ago
parent
commit
6a4f8c1400
  1. 8
      test/function/does-not-hang-on-missing-module/_config.js
  2. 2
      test/function/does-not-hang-on-missing-module/main.js

8
test/function/does-not-hang-on-missing-module/_config.js

@ -0,0 +1,8 @@
var assert = require( 'assert' );
module.exports = {
description: 'does not hang on missing module (#53)',
error: function ( error ) {
assert.ok( /Could not find package unlessYouCreatedThisFileForSomeReason/.test( error.message ) );
}
};

2
test/function/does-not-hang-on-missing-module/main.js

@ -0,0 +1,2 @@
import doesNotExist from 'unlessYouCreatedThisFileForSomeReason';
doesNotExist();
Loading…
Cancel
Save