Browse Source

update tests

contingency-plan
Rich Harris 10 years ago
parent
commit
fe807abe2e
  1. 2
      test/samples/import-default-class/main.js
  2. 3
      test/samples/import-namespace-from-internal-module/_config.js
  3. 0
      test/samples/import-namespace-from-internal-module/foo.js
  4. 0
      test/samples/import-namespace-from-internal-module/main.js
  5. 1
      test/samples/namespace-reassign-import-fails/_config.js
  6. 1
      test/samples/namespace-update-import-fails/_config.js

2
test/samples/import-default-class/main.js

@ -1,4 +1,4 @@
import Point from './exporter';
import Point from './point';
assert.strictEqual(new Point(1, 2).x, 1);
assert.strictEqual(new Point(1, 2).y, 2);

3
test/samples/namespaces/_config.js → test/samples/import-namespace-from-internal-module/_config.js

@ -1,5 +1,6 @@
module.exports = {
description: 'imports a namespace from an internal module'
description: 'imports a namespace from an internal module',
// solo: true
};
// test copied from https://github.com/esnext/es6-module-transpiler/tree/master/test/examples/namespaces

0
test/samples/namespaces/foo.js → test/samples/import-namespace-from-internal-module/foo.js

0
test/samples/namespaces/main.js → test/samples/import-namespace-from-internal-module/main.js

1
test/samples/namespace-reassign-import-fails/_config.js

@ -3,6 +3,7 @@ var assert = require( 'assert' );
module.exports = {
description: 'disallows reassignments to namespace exports',
error: function ( err ) {
console.log( err );
assert.ok( false, 'TODO figure out correct error' );
}
};

1
test/samples/namespace-update-import-fails/_config.js

@ -3,6 +3,7 @@ var assert = require( 'assert' );
module.exports = {
description: 'disallows updates to namespace exports',
error: function ( err ) {
console.log( err );
assert.ok( false, 'TODO figure out correct error' );
}
};

Loading…
Cancel
Save