Browse Source

Add another failing test.

better-aggressive
Mike Bostock 9 years ago
parent
commit
0afe2d9601
  1. 10
      test/function/assignment-to-re-exports-conflict/_config.js
  2. 10
      test/function/assignment-to-re-exports-conflict/count.js
  3. 1
      test/function/assignment-to-re-exports-conflict/main.js

10
test/function/assignment-to-re-exports-conflict/_config.js

@ -0,0 +1,10 @@
var assert = require( 'assert' );
module.exports = {
description: 're-exports are kept up-to-date',
exports: function ( exports ) {
assert.equal( exports.count, 0 );
exports.incr();
assert.equal( exports.count, 1 );
}
};

10
test/function/assignment-to-re-exports-conflict/count.js

@ -0,0 +1,10 @@
export var count = 0;
export function conflict () {
var foo = 0,
count = 42;
}
export function incr () {
count += 1;
}

1
test/function/assignment-to-re-exports-conflict/main.js

@ -0,0 +1 @@
export {count, incr, conflict} from './count';
Loading…
Cancel
Save