Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Sep 9, 2018
1 parent 06e504b commit 450aae7
Show file tree
Hide file tree
Showing 130 changed files with 785 additions and 227 deletions.
Expand Up @@ -5,6 +5,8 @@ function (_Bar) {

babelHelpers.inherits(Foo, _Bar);

var _super = babelHelpers.createSuper(Foo);

function Foo(options) {
babelHelpers.classCallCheck(this, Foo);
var parentOptions = {};
Expand All @@ -13,7 +15,7 @@ function (_Bar) {
this;
};

return babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this, parentOptions));
return _super.call(this, parentOptions);
}

return Foo;
Expand Down
Expand Up @@ -15,12 +15,14 @@ let Outer =
function (_Hello) {
babelHelpers.inherits(Outer, _Hello);

var _super = babelHelpers.createSuper(Outer);

function Outer() {
var _this;

babelHelpers.classCallCheck(this, Outer);

var _this2 = _this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Outer).call(this));
var _this2 = _this = _super.call(this);

let Inner = function Inner() {
babelHelpers.classCallCheck(this, Inner);
Expand Down
Expand Up @@ -21,11 +21,13 @@ let Outer =
function (_Hello) {
babelHelpers.inherits(Outer, _Hello);

var _super = babelHelpers.createSuper(Outer);

function Outer() {
var _this;

babelHelpers.classCallCheck(this, Outer);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Outer).call(this));
_this = _super.call(this);

var _babelHelpers$get$cal = babelHelpers.get(babelHelpers.getPrototypeOf(Outer.prototype), "toString", babelHelpers.assertThisInitialized(_this)).call(babelHelpers.assertThisInitialized(_this));

Expand Down
Expand Up @@ -5,19 +5,21 @@ function (_Bar) {

babelHelpers.inherits(Foo, _Bar);

var _super = babelHelpers.createSuper(Foo);

function Foo() {
var _this;

babelHelpers.classCallCheck(this, Foo);

if (condition) {
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
_this = _super.call(this);
Object.defineProperty(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this))), _bar, {
writable: true,
value: "foo"
});
} else {
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
_this = _super.call(this);
Object.defineProperty(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this))), _bar, {
writable: true,
value: "foo"
Expand Down
Expand Up @@ -17,11 +17,13 @@ function (_Foo) {

babelHelpers.inherits(Bar, _Foo);

var _super = babelHelpers.createSuper(Bar);

function Bar(...args) {
var _this;

babelHelpers.classCallCheck(this, Bar);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Bar).call(this, ...args));
_this = _super.call(this, ...args);
Object.defineProperty(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), _prop2, {
writable: true,
value: "bar"
Expand Down
Expand Up @@ -5,11 +5,13 @@ function (_Parent) {

babelHelpers.inherits(Child, _Parent);

var _super = babelHelpers.createSuper(Child);

function Child() {
var _this;

babelHelpers.classCallCheck(this, Child);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Child).call(this));
_this = _super.call(this);
Object.defineProperty(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), _scopedFunctionWithThis, {
writable: true,
value: function value() {
Expand Down
Expand Up @@ -12,9 +12,11 @@ var Outer = function Outer() {
function (_babelHelpers$classPr) {
babelHelpers.inherits(Test, _babelHelpers$classPr);

var _super = babelHelpers.createSuper(Test);

function Test() {
babelHelpers.classCallCheck(this, Test);
return babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Test).apply(this, arguments));
return _super.apply(this, arguments);
}

return Test;
Expand Down
Expand Up @@ -5,11 +5,13 @@ function (_Bar) {

babelHelpers.inherits(Foo, _Bar);

var _super = babelHelpers.createSuper(Foo);

function Foo() {
var _temp, _this;

babelHelpers.classCallCheck(this, Foo);
foo((_temp = _this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this)), Object.defineProperty(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), _bar, {
foo((_temp = _this = _super.call(this), Object.defineProperty(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), _bar, {
writable: true,
value: "foo"
}), _temp));
Expand Down
Expand Up @@ -5,11 +5,13 @@ function (_Bar) {

babelHelpers.inherits(Foo, _Bar);

var _super = babelHelpers.createSuper(Foo);

function Foo() {
var _this;

babelHelpers.classCallCheck(this, Foo);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
_this = _super.call(this);
Object.defineProperty(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), _bar, {
writable: true,
value: "foo"
Expand Down
Expand Up @@ -5,20 +5,22 @@ function (_Bar) {

babelHelpers.inherits(Foo, _Bar);

var _super = babelHelpers.createSuper(Foo);

function Foo() {
var _this;

babelHelpers.classCallCheck(this, Foo);

if (condition) {
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
_this = _super.call(this);

_bar.set(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this))), {
writable: true,
value: "foo"
});
} else {
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
_this = _super.call(this);

_bar.set(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this))), {
writable: true,
Expand Down
Expand Up @@ -18,11 +18,13 @@ function (_Foo) {

babelHelpers.inherits(Bar, _Foo);

var _super = babelHelpers.createSuper(Bar);

function Bar(...args) {
var _this;

babelHelpers.classCallCheck(this, Bar);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Bar).call(this, ...args));
_this = _super.call(this, ...args);

_prop2.set(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), {
writable: true,
Expand Down
Expand Up @@ -5,11 +5,13 @@ function (_Parent) {

babelHelpers.inherits(Child, _Parent);

var _super = babelHelpers.createSuper(Child);

function Child() {
var _this;

babelHelpers.classCallCheck(this, Child);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Child).call(this));
_this = _super.call(this);

_scopedFunctionWithThis.set(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), {
writable: true,
Expand Down
Expand Up @@ -13,9 +13,11 @@ var Outer = function Outer() {
function (_babelHelpers$classPr) {
babelHelpers.inherits(Test, _babelHelpers$classPr);

var _super = babelHelpers.createSuper(Test);

function Test() {
babelHelpers.classCallCheck(this, Test);
return babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Test).apply(this, arguments));
return _super.apply(this, arguments);
}

return Test;
Expand Down
Expand Up @@ -23,11 +23,13 @@ function (_A) {

babelHelpers.inherits(B, _A);

var _super = babelHelpers.createSuper(B);

function B(...args) {
var _this;

babelHelpers.classCallCheck(this, B);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(B).call(this, ...args));
_this = _super.call(this, ...args);

_foo.set(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), {
writable: true,
Expand Down
Expand Up @@ -5,11 +5,13 @@ function (_Bar) {

babelHelpers.inherits(Foo, _Bar);

var _super = babelHelpers.createSuper(Foo);

function Foo() {
var _temp, _this;

babelHelpers.classCallCheck(this, Foo);
foo((_temp = _this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this)), _bar.set(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), {
foo((_temp = _this = _super.call(this), _bar.set(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), {
writable: true,
value: "foo"
}), _temp));
Expand Down
Expand Up @@ -5,11 +5,13 @@ function (_Bar) {

babelHelpers.inherits(Foo, _Bar);

var _super = babelHelpers.createSuper(Foo);

function Foo() {
var _this;

babelHelpers.classCallCheck(this, Foo);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
_this = _super.call(this);

_bar.set(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), {
writable: true,
Expand Down
Expand Up @@ -5,11 +5,13 @@ function (_Bar) {

babelHelpers.inherits(Foo, _Bar);

var _super = babelHelpers.createSuper(Foo);

function Foo(...args) {
var _this;

babelHelpers.classCallCheck(this, Foo);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this, ...args));
_this = _super.call(this, ...args);
_this.bar = "foo";
return _this;
}
Expand Down
Expand Up @@ -5,11 +5,13 @@ function (_Parent) {

babelHelpers.inherits(Child, _Parent);

var _super = babelHelpers.createSuper(Child);

function Child() {
var _this;

babelHelpers.classCallCheck(this, Child);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Child).call(this));
_this = _super.call(this);

_this.scopedFunctionWithThis = function () {
_this.name = {};
Expand Down
Expand Up @@ -8,9 +8,11 @@ function withContext(ComposedComponent) {

babelHelpers.inherits(WithContext, _Component);

var _super = babelHelpers.createSuper(WithContext);

function WithContext() {
babelHelpers.classCallCheck(this, WithContext);
return babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(WithContext).apply(this, arguments));
return _super.apply(this, arguments);
}

return WithContext;
Expand Down
Expand Up @@ -23,11 +23,13 @@ function (_A) {

babelHelpers.inherits(B, _A);

var _super = babelHelpers.createSuper(B);

function B(...args) {
var _this;

babelHelpers.classCallCheck(this, B);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(B).call(this, ...args));
_this = _super.call(this, ...args);
_this.foo = babelHelpers.get(babelHelpers.getPrototypeOf(B.prototype), "foo", babelHelpers.assertThisInitialized(_this)).call(babelHelpers.assertThisInitialized(_this));
return _this;
}
Expand Down
Expand Up @@ -5,11 +5,13 @@ function (_Bar) {

babelHelpers.inherits(Foo, _Bar);

var _super = babelHelpers.createSuper(Foo);

function Foo() {
var _temp, _this;

babelHelpers.classCallCheck(this, Foo);
foo((_temp = _this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this)), _this.bar = "foo", _temp));
foo((_temp = _this = _super.call(this), _this.bar = "foo", _temp));
return _this;
}

Expand Down
Expand Up @@ -5,11 +5,13 @@ function (_Bar) {

babelHelpers.inherits(Foo, _Bar);

var _super = babelHelpers.createSuper(Foo);

function Foo() {
var _this;

babelHelpers.classCallCheck(this, Foo);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
_this = _super.call(this);
_this.bar = "foo";
return _this;
}
Expand Down
Expand Up @@ -5,16 +5,18 @@ function (_Bar) {

babelHelpers.inherits(Foo, _Bar);

var _super = babelHelpers.createSuper(Foo);

function Foo() {
var _this;

babelHelpers.classCallCheck(this, Foo);

if (condition) {
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
_this = _super.call(this);
babelHelpers.defineProperty(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this))), "bar", "foo");
} else {
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
_this = _super.call(this);
babelHelpers.defineProperty(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this))), "bar", "foo");
}

Expand Down
Expand Up @@ -5,11 +5,13 @@ function (_Bar) {

babelHelpers.inherits(Foo, _Bar);

var _super = babelHelpers.createSuper(Foo);

function Foo(...args) {
var _this;

babelHelpers.classCallCheck(this, Foo);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this, ...args));
_this = _super.call(this, ...args);
babelHelpers.defineProperty(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), "bar", "foo");
return _this;
}
Expand Down
Expand Up @@ -5,11 +5,13 @@ function (_Parent) {

babelHelpers.inherits(Child, _Parent);

var _super = babelHelpers.createSuper(Child);

function Child() {
var _this;

babelHelpers.classCallCheck(this, Child);
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Child).call(this));
_this = _super.call(this);
babelHelpers.defineProperty(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this)), "scopedFunctionWithThis", function () {
_this.name = {};
});
Expand Down

0 comments on commit 450aae7

Please sign in to comment.