Files
liuxingbaoyuandGitHub 0d29e85ffc Reduce the use of class names (#16326)
Use the return value of the createClass helper
2024-03-07 17:11:56 -05:00

21 lines
548 B
JavaScript

var Test = /*#__PURE__*/function () {
"use strict";
function Test() {
babelHelpers.classCallCheck(this, Test);
return Object.prototype.constructor;
}
return babelHelpers.createClass(Test, null, [{
key: "test",
value: function test() {
return Function.prototype.constructor;
}
}]);
}(); // Instances
expect(Object.getPrototypeOf(Test.prototype)).toBe(Object.prototype);
expect(new Test()).toBe(Object);
// Static
expect(Object.getPrototypeOf(Test)).toBe(Function.prototype);
expect(Test.test()).toBe(Function);