Browse Source

use var instead of const for tests, remove unused files

contingency-plan
Rich-Harris 10 years ago
parent
commit
02706f757a
  1. 4
      test/function/consistent-renaming-d/main.js
  2. 11
      test/function/consistent-renaming-d/rsvp/all-settled.js
  3. 3
      test/function/consistent-renaming-d/rsvp/enumerator.js
  4. 5
      test/function/consistent-renaming-d/rsvp/promise.js
  5. 5
      test/function/consistent-renaming-d/rsvp/promise/all.js

4
test/function/consistent-renaming-d/main.js

@ -1,6 +1,6 @@
import Foo from './foo';
import bar from './bar';
const baz = Foo.baz();
var baz = Foo.baz();
assert.ok( baz.isBaz );
assert.ok( bar().inheritsFromBaz );
assert.ok( bar().inheritsFromBaz );

11
test/function/consistent-renaming-d/rsvp/all-settled.js

@ -1,11 +0,0 @@
import Enumerator from './enumerator';
import Promise from './promise';
function AllSettled () {}
AllSettled.prototype = o_create(Enumerator.prototype);
AllSettled.prototype._superConstructor = Enumerator;
export default function allSettled(entries, label) {
return new AllSettled();
}

3
test/function/consistent-renaming-d/rsvp/enumerator.js

@ -1,3 +0,0 @@
function Enumerator () {}
export default Enumerator;

5
test/function/consistent-renaming-d/rsvp/promise.js

@ -1,5 +0,0 @@
import all from './promise/all';
export default function Promise () {}
Promise.all = all;

5
test/function/consistent-renaming-d/rsvp/promise/all.js

@ -1,5 +0,0 @@
import Enumerator from '../enumerator';
export default function all () {
return new Enumerator();
}
Loading…
Cancel
Save