Browse Source

test for non-renamining of property keys

better-aggressive
Rich Harris 9 years ago
parent
commit
bdda8e6b3a
  1. 3
      test/function/property-keys-not-renamed/_config.js
  2. 7
      test/function/property-keys-not-renamed/main.js
  3. 11
      test/function/property-keys-not-renamed/one.js
  4. 11
      test/function/property-keys-not-renamed/three.js
  5. 11
      test/function/property-keys-not-renamed/two.js

3
test/function/property-keys-not-renamed/_config.js

@ -0,0 +1,3 @@
module.exports = {
description: 'does not rename property keys'
};

7
test/function/property-keys-not-renamed/main.js

@ -0,0 +1,7 @@
import one from './one';
import two from './two';
import three from './three';
assert.equal( one(), 'one' );
assert.equal( two(), 'two' );
assert.equal( three(), 'three' );

11
test/function/property-keys-not-renamed/one.js

@ -0,0 +1,11 @@
const obj = {
foo: foo
};
function foo () {
return 'one';
}
export default function () {
return obj.foo();
}

11
test/function/property-keys-not-renamed/three.js

@ -0,0 +1,11 @@
const obj = {
foo: foo
};
function foo () {
return 'three';
}
export default function () {
return obj.foo();
}

11
test/function/property-keys-not-renamed/two.js

@ -0,0 +1,11 @@
const obj = {
foo: foo
};
function foo () {
return 'two';
}
export default function () {
return obj.foo();
}
Loading…
Cancel
Save