Browse Source

failing test for #96

contingency-plan
Rich-Harris 9 years ago
parent
commit
9fd191f25a
  1. 4
      test/function/tracks-alias-mutations/_config.js
  2. 6
      test/function/tracks-alias-mutations/bar.js
  3. 1
      test/function/tracks-alias-mutations/foo.js
  4. 4
      test/function/tracks-alias-mutations/main.js

4
test/function/tracks-alias-mutations/_config.js

@ -0,0 +1,4 @@
module.exports = {
description: 'tracks mutations of aliased objects',
solo: true
};

6
test/function/tracks-alias-mutations/bar.js

@ -0,0 +1,6 @@
import { foo } from './foo';
var f = foo;
f.wasMutated = true;
export var bar = 'whatever';

1
test/function/tracks-alias-mutations/foo.js

@ -0,0 +1 @@
export var foo = {};

4
test/function/tracks-alias-mutations/main.js

@ -0,0 +1,4 @@
import { foo } from './foo';
import { bar } from './bar';
assert.ok( foo.wasMutated );
Loading…
Cancel
Save