From 13d5c94b8b03e5c297e1fea7642670c0a466e229 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 21 Jun 2015 00:03:29 +0100 Subject: [PATCH] update transformation tests --- .../es6.classes-loose/accessing-super-class/expected.js | 4 ++-- .../super-class-id-member-expression/expected.js | 6 +++--- .../es6.classes-loose/super-class/expected.js | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/core/fixtures/transformation/es6.classes-loose/accessing-super-class/expected.js b/test/core/fixtures/transformation/es6.classes-loose/accessing-super-class/expected.js index fa1b8ef7ae..0001aaf002 100644 --- a/test/core/fixtures/transformation/es6.classes-loose/accessing-super-class/expected.js +++ b/test/core/fixtures/transformation/es6.classes-loose/accessing-super-class/expected.js @@ -10,7 +10,7 @@ var Test = (function (_Foo) { _Foo.call(this); _Foo.prototype.test.call(this); - _Foo.call.apply(_Foo, [this].concat(babelHelpers.slice.call(arguments))); + _Foo.apply(this, arguments); _Foo.call.apply(_Foo, [this, "test"].concat(babelHelpers.slice.call(arguments))); (_Foo$prototype$test = _Foo.prototype.test).call.apply(_Foo$prototype$test, [this].concat(babelHelpers.slice.call(arguments))); @@ -36,4 +36,4 @@ var Test = (function (_Foo) { }; return Test; -})(Foo); \ No newline at end of file +})(Foo); diff --git a/test/core/fixtures/transformation/es6.classes-loose/super-class-id-member-expression/expected.js b/test/core/fixtures/transformation/es6.classes-loose/super-class-id-member-expression/expected.js index a7e5700da9..14f00f622a 100644 --- a/test/core/fixtures/transformation/es6.classes-loose/super-class-id-member-expression/expected.js +++ b/test/core/fixtures/transformation/es6.classes-loose/super-class-id-member-expression/expected.js @@ -4,7 +4,7 @@ var BaseController = (function (_Chaplin$Controller) { function BaseController() { babelHelpers.classCallCheck(this, BaseController); - _Chaplin$Controller.call.apply(_Chaplin$Controller, [this].concat(babelHelpers.slice.call(arguments))); + _Chaplin$Controller.apply(this, arguments); } babelHelpers.inherits(BaseController, _Chaplin$Controller); @@ -15,9 +15,9 @@ var BaseController2 = (function (_Chaplin$Controller$Another) { function BaseController2() { babelHelpers.classCallCheck(this, BaseController2); - _Chaplin$Controller$Another.call.apply(_Chaplin$Controller$Another, [this].concat(babelHelpers.slice.call(arguments))); + _Chaplin$Controller$Another.apply(this, arguments); } babelHelpers.inherits(BaseController2, _Chaplin$Controller$Another); return BaseController2; -})(Chaplin.Controller.Another); \ No newline at end of file +})(Chaplin.Controller.Another); diff --git a/test/core/fixtures/transformation/es6.classes-loose/super-class/expected.js b/test/core/fixtures/transformation/es6.classes-loose/super-class/expected.js index 433fc71c72..161d930afe 100644 --- a/test/core/fixtures/transformation/es6.classes-loose/super-class/expected.js +++ b/test/core/fixtures/transformation/es6.classes-loose/super-class/expected.js @@ -4,9 +4,9 @@ var Test = (function (_Foo) { function Test() { babelHelpers.classCallCheck(this, Test); - _Foo.call.apply(_Foo, [this].concat(babelHelpers.slice.call(arguments))); + _Foo.apply(this, arguments); } babelHelpers.inherits(Test, _Foo); return Test; -})(Foo); \ No newline at end of file +})(Foo);