From 02706f757a1d70cd6880329f4f6d4e15ab155bad Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Tue, 2 Jun 2015 19:31:42 -0400 Subject: [PATCH] use var instead of const for tests, remove unused files --- test/function/consistent-renaming-d/main.js | 4 ++-- .../consistent-renaming-d/rsvp/all-settled.js | 11 ----------- .../function/consistent-renaming-d/rsvp/enumerator.js | 3 --- test/function/consistent-renaming-d/rsvp/promise.js | 5 ----- .../consistent-renaming-d/rsvp/promise/all.js | 5 ----- 5 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 test/function/consistent-renaming-d/rsvp/all-settled.js delete mode 100644 test/function/consistent-renaming-d/rsvp/enumerator.js delete mode 100644 test/function/consistent-renaming-d/rsvp/promise.js delete mode 100644 test/function/consistent-renaming-d/rsvp/promise/all.js diff --git a/test/function/consistent-renaming-d/main.js b/test/function/consistent-renaming-d/main.js index aa10227..b00bf2d 100644 --- a/test/function/consistent-renaming-d/main.js +++ b/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 ); \ No newline at end of file +assert.ok( bar().inheritsFromBaz ); diff --git a/test/function/consistent-renaming-d/rsvp/all-settled.js b/test/function/consistent-renaming-d/rsvp/all-settled.js deleted file mode 100644 index ac475f8..0000000 --- a/test/function/consistent-renaming-d/rsvp/all-settled.js +++ /dev/null @@ -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(); -} diff --git a/test/function/consistent-renaming-d/rsvp/enumerator.js b/test/function/consistent-renaming-d/rsvp/enumerator.js deleted file mode 100644 index 9335c16..0000000 --- a/test/function/consistent-renaming-d/rsvp/enumerator.js +++ /dev/null @@ -1,3 +0,0 @@ -function Enumerator () {} - -export default Enumerator; diff --git a/test/function/consistent-renaming-d/rsvp/promise.js b/test/function/consistent-renaming-d/rsvp/promise.js deleted file mode 100644 index ffa347e..0000000 --- a/test/function/consistent-renaming-d/rsvp/promise.js +++ /dev/null @@ -1,5 +0,0 @@ -import all from './promise/all'; - -export default function Promise () {} - -Promise.all = all; \ No newline at end of file diff --git a/test/function/consistent-renaming-d/rsvp/promise/all.js b/test/function/consistent-renaming-d/rsvp/promise/all.js deleted file mode 100644 index ea0a159..0000000 --- a/test/function/consistent-renaming-d/rsvp/promise/all.js +++ /dev/null @@ -1,5 +0,0 @@ -import Enumerator from '../enumerator'; - -export default function all () { - return new Enumerator(); -}