Skip to content

Commit

Permalink
rev yarn.lock
Browse files Browse the repository at this point in the history
Which required updating some tests where the output format changed in insignificant ways.
  • Loading branch information
ef4 committed Sep 26, 2023
1 parent 9d0a082 commit c23feff
Show file tree
Hide file tree
Showing 2 changed files with 623 additions and 601 deletions.
16 changes: 6 additions & 10 deletions node-tests/addon-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2039,8 +2039,7 @@ describe('EmberData Packages Polyfill', function() {
'foo',
assembleLines([
`_exports.default = void 0;`,
`var _default = _emberData.default.Store;`,
`_exports.default = _default;`
`var _default = _exports.default = _emberData.default.Store;`,
])
);
let bemOutput = moduleOutput(
Expand All @@ -2060,19 +2059,16 @@ describe('EmberData Packages Polyfill', function() {
`_exports.name = _exports.User = void 0;`,
`var Model = _emberData.default.Model;`,
`var attr = _emberData.default.attr;`,
`var User = Model;`,
`_exports.User = User;`,
`var name = attr;`,
`_exports.name = name;`
`var User = _exports.User = Model;`,
`var name = _exports.name = attr;`,
])
);
let bazOutput = moduleOutput(
'baz',
assembleLines([
`_exports.User = void 0;`,
`var EmberData = _emberData.default;`,
`var User = EmberData.Model;`,
`_exports.User = User;`
`var User = _exports.User = EmberData.Model;`,
])
);

Expand Down Expand Up @@ -2282,7 +2278,7 @@ describe('babel config file', function() {
yield output.build();

expect(output.read()).to.deep.equal({
"foo.js": `define("foo", ["exports"], function (_exports) {\n "use strict";\n\n Object.defineProperty(_exports, "__esModule", {\n value: true\n });\n _exports.default = void 0;\n var _default = {};\n _exports.default = _default;\n});`,
"foo.js": `define("foo", ["exports"], function (_exports) {\n "use strict";\n\n Object.defineProperty(_exports, "__esModule", {\n value: true\n });\n _exports.default = void 0;\n var _default = _exports.default = {};\n});`,
});
}));

Expand Down Expand Up @@ -2324,7 +2320,7 @@ describe('babel config file', function() {

expect(output.read()).to.deep.equal({
"foo.js":
'define("foo", ["exports"], function (_exports) {\n "use strict";\n\n Object.defineProperty(_exports, "__esModule", {\n value: true\n });\n _exports.default = void 0;\n var _default = {};\n _exports.default = _default;\n});',
'define("foo", ["exports"], function (_exports) {\n "use strict";\n\n Object.defineProperty(_exports, "__esModule", {\n value: true\n });\n _exports.default = void 0;\n var _default = _exports.default = {};\n});',
});
}));
});
Expand Down
Loading

0 comments on commit c23feff

Please sign in to comment.