Ensure that we don't get unexpected output files for tests that throw. (#8208)

This commit is contained in:
Logan Smyth
2018-07-04 16:06:58 -07:00
committed by GitHub
parent 9bd4b46fd6
commit 2cf2fd544b
20 changed files with 19 additions and 391 deletions

View File

@@ -1,18 +0,0 @@
var _foo, _bar;
class Foo {
constructor() {
Object.defineProperty(this, _bar, {
writable: true,
value: "bar"
});
}
}
_foo = babelHelpers.classPrivateFieldKey("foo");
Object.defineProperty(Foo, _foo, {
writable: true,
value: "foo"
});
_bar = babelHelpers.classPrivateFieldKey("bar");

View File

@@ -1,25 +0,0 @@
export default (param => {
var _props, _class, _temp;
return _temp = _class =
/*#__PURE__*/
function () {
function App() {
babelHelpers.classCallCheck(this, App);
}
babelHelpers.createClass(App, [{
key: "getParam",
value: function getParam() {
return param;
}
}]);
return App;
}(), _props = babelHelpers.classPrivateFieldKey("props"), Object.defineProperty(_class, _props, {
writable: true,
value: {
prop1: 'prop1',
prop2: 'prop2'
}
}), _temp;
});

View File

@@ -1,18 +0,0 @@
function classFactory() {
var _bar, _foo;
var Foo = function Foo() {
babelHelpers.classCallCheck(this, Foo);
Object.defineProperty(this, _foo, {
writable: true,
value: "foo"
});
};
_bar = babelHelpers.classPrivateFieldKey("bar");
Object.defineProperty(Foo, _bar, {
writable: true,
value: "bar"
});
_foo = babelHelpers.classPrivateFieldKey("foo");
}

View File

@@ -1,21 +0,0 @@
var _property, _property2;
export var MyClass = function MyClass() {
babelHelpers.classCallCheck(this, MyClass);
};
_property = babelHelpers.classPrivateFieldKey("property");
Object.defineProperty(MyClass, _property, {
writable: true,
value: value
});
var MyClass2 = function MyClass2() {
babelHelpers.classCallCheck(this, MyClass2);
};
_property2 = babelHelpers.classPrivateFieldKey("property");
Object.defineProperty(MyClass2, _property2, {
writable: true,
value: value
});
export { MyClass2 as default };

View File

@@ -1,8 +0,0 @@
var _num, _class, _temp;
var Foo = (_temp = _class = function Foo() {
babelHelpers.classCallCheck(this, Foo);
}, _num = babelHelpers.classPrivateFieldKey("num"), Object.defineProperty(_class, _num, {
writable: true,
value: 0
}), _temp);

View File

@@ -1,55 +0,0 @@
var _foo, _foo2;
var Base =
/*#__PURE__*/
function () {
function Base() {
babelHelpers.classCallCheck(this, Base);
}
babelHelpers.createClass(Base, null, [{
key: "m",
value: function m() {
return babelHelpers.classPrivateFieldBase(this, _foo)[_foo];
}
}]);
return Base;
}();
_foo = babelHelpers.classPrivateFieldKey("foo");
Object.defineProperty(Base, _foo, {
writable: true,
value: 1
});
var Sub1 =
/*#__PURE__*/
function (_Base) {
babelHelpers.inherits(Sub1, _Base);
function Sub1() {
babelHelpers.classCallCheck(this, Sub1);
return babelHelpers.possibleConstructorReturn(this, (Sub1.__proto__ || Object.getPrototypeOf(Sub1)).apply(this, arguments));
}
return Sub1;
}(Base);
_foo2 = babelHelpers.classPrivateFieldKey("foo");
Object.defineProperty(Sub1, _foo2, {
writable: true,
value: 2
});
var Sub2 =
/*#__PURE__*/
function (_Base2) {
babelHelpers.inherits(Sub2, _Base2);
function Sub2() {
babelHelpers.classCallCheck(this, Sub2);
return babelHelpers.possibleConstructorReturn(this, (Sub2.__proto__ || Object.getPrototypeOf(Sub2)).apply(this, arguments));
}
return Sub2;
}(Base);

View File

@@ -1,11 +0,0 @@
var _bar;
var Foo = function Foo() {
babelHelpers.classCallCheck(this, Foo);
};
_bar = babelHelpers.classPrivateFieldKey("bar");
Object.defineProperty(Foo, _bar, {
writable: true,
value: void 0
});

View File

@@ -1,28 +0,0 @@
var _bar;
var Foo =
/*#__PURE__*/
function () {
function Foo() {
babelHelpers.classCallCheck(this, Foo);
}
babelHelpers.createClass(Foo, [{
key: "test",
value: function test() {
return babelHelpers.classPrivateFieldBase(Foo, _bar)[_bar];
}
}], [{
key: "test",
value: function test() {
return babelHelpers.classPrivateFieldBase(Foo, _bar)[_bar];
}
}]);
return Foo;
}();
_bar = babelHelpers.classPrivateFieldKey("bar");
Object.defineProperty(Foo, _bar, {
writable: true,
value: "foo"
});

View File

@@ -1,14 +0,0 @@
var _foo, _bar;
class Foo {
constructor() {
_bar.set(this, "bar");
}
}
_foo = new WeakMap();
_foo.set(Foo, "foo");
_bar = new WeakMap();

View File

@@ -1,22 +0,0 @@
export default (param => {
var _props, _class, _temp;
return _temp = _class =
/*#__PURE__*/
function () {
function App() {
babelHelpers.classCallCheck(this, App);
}
babelHelpers.createClass(App, [{
key: "getParam",
value: function getParam() {
return param;
}
}]);
return App;
}(), _props = new WeakMap(), _props.set(_class, {
prop1: 'prop1',
prop2: 'prop2'
}), _temp;
});

View File

@@ -1,15 +0,0 @@
function classFactory() {
var _bar, _foo;
var Foo = function Foo() {
babelHelpers.classCallCheck(this, Foo);
_foo.set(this, "foo");
};
_bar = new WeakMap();
_bar.set(Foo, "bar");
_foo = new WeakMap();
}

View File

@@ -1,16 +0,0 @@
var _test, _class, _temp, _test2;
call((_temp = _class = function _class() {
babelHelpers.classCallCheck(this, _class);
}, _test = new WeakMap(), _test.set(_class, true), _temp));
var _default = function _default() {
babelHelpers.classCallCheck(this, _default);
};
_test2 = new WeakMap();
_test2.set(_default, true);
export { _default as default };
;

View File

@@ -1,22 +0,0 @@
function withContext(ComposedComponent) {
var _propTypes, _class, _temp;
return _temp = _class =
/*#__PURE__*/
function (_Component) {
babelHelpers.inherits(WithContext, _Component);
function WithContext() {
babelHelpers.classCallCheck(this, WithContext);
return babelHelpers.possibleConstructorReturn(this, (WithContext.__proto__ || Object.getPrototypeOf(WithContext)).apply(this, arguments));
}
return WithContext;
}(Component), _propTypes = new WeakMap(), _propTypes.set(_class, {
context: PropTypes.shape({
addCss: PropTypes.func,
setTitle: PropTypes.func,
setMeta: PropTypes.func
})
}), _temp;
}

View File

@@ -1,18 +0,0 @@
var _property, _property2;
export var MyClass = function MyClass() {
babelHelpers.classCallCheck(this, MyClass);
};
_property = new WeakMap();
_property.set(MyClass, value);
var MyClass2 = function MyClass2() {
babelHelpers.classCallCheck(this, MyClass2);
};
_property2 = new WeakMap();
_property2.set(MyClass2, value);
export { MyClass2 as default };

View File

@@ -1,5 +0,0 @@
var _num, _class, _temp;
var Foo = (_temp = _class = function Foo() {
babelHelpers.classCallCheck(this, Foo);
}, _num = new WeakMap(), _num.set(_class, 0), _temp);

View File

@@ -1,51 +0,0 @@
var _foo, _foo2;
var Base =
/*#__PURE__*/
function () {
function Base() {
babelHelpers.classCallCheck(this, Base);
}
babelHelpers.createClass(Base, null, [{
key: "m",
value: function m() {
return babelHelpers.classPrivateFieldGet(this, _foo);
}
}]);
return Base;
}();
_foo = new WeakMap();
_foo.set(Base, 1);
var Sub1 =
/*#__PURE__*/
function (_Base) {
babelHelpers.inherits(Sub1, _Base);
function Sub1() {
babelHelpers.classCallCheck(this, Sub1);
return babelHelpers.possibleConstructorReturn(this, (Sub1.__proto__ || Object.getPrototypeOf(Sub1)).apply(this, arguments));
}
return Sub1;
}(Base);
_foo2 = new WeakMap();
_foo2.set(Sub1, 2);
var Sub2 =
/*#__PURE__*/
function (_Base2) {
babelHelpers.inherits(Sub2, _Base2);
function Sub2() {
babelHelpers.classCallCheck(this, Sub2);
return babelHelpers.possibleConstructorReturn(this, (Sub2.__proto__ || Object.getPrototypeOf(Sub2)).apply(this, arguments));
}
return Sub2;
}(Base);

View File

@@ -1,9 +0,0 @@
var _bar;
var Foo = function Foo() {
babelHelpers.classCallCheck(this, Foo);
};
_bar = new WeakMap();
_bar.set(Foo, void 0);

View File

@@ -1,26 +0,0 @@
var _bar;
var Foo =
/*#__PURE__*/
function () {
function Foo() {
babelHelpers.classCallCheck(this, Foo);
}
babelHelpers.createClass(Foo, [{
key: "test",
value: function test() {
return babelHelpers.classPrivateFieldGet(Foo, _bar);
}
}], [{
key: "test",
value: function test() {
return babelHelpers.classPrivateFieldGet(Foo, _bar);
}
}]);
return Foo;
}();
_bar = new WeakMap();
_bar.set(Foo, "foo");