Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit 8984870

Browse files
guybedfordlukastaegert
authored andcommitted
Node 0.12 support
1 parent 7fa725b commit 8984870

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,16 +447,16 @@ describe( 'rollup-pluginutils', function () {
447447
var dataToNamedExports = utils.dataToNamedExports;
448448

449449
it( 'outputs treeshakable data', function () {
450-
assert.equal( dataToNamedExports({ some: 'data', another: 'data' }), `export const some = "data";\nexport const another = "data";\nexport default {\n some,\n another\n};` );
450+
assert.equal( dataToNamedExports({ some: 'data', another: 'data' }), 'export const some = "data";\nexport const another = "data";\nexport default {\n some,\n another\n};' );
451451
});
452452

453453
it( 'handles illegal identifiers', function () {
454-
assert.equal( dataToNamedExports({ '1': 'data', 'default': 'data' }), `export const _1 = "data";\nexport const _default = "data";\nexport default {\n '1': _1,\n 'default': _default\n};` );
454+
assert.equal( dataToNamedExports({ '1': 'data', 'default': 'data' }), 'export const _1 = "data";\nexport const _default = "data";\nexport default {\n \'1\': _1,\n \'default\': _default\n};' );
455455
});
456456

457457
it( 'supports non-JSON data', function () {
458458
const date = new Date();
459-
assert.equal( dataToNamedExports({ inf: Infinity, date }), `export const inf = Infinity;\nexport const date = new Date(${date.getTime()});\nexport default {\n inf,\n date\n};` );
459+
assert.equal( dataToNamedExports({ inf: Infinity, date: date }), 'export const inf = Infinity;\nexport const date = new Date(' + date.getTime() + ');\nexport default {\n inf,\n date\n};' );
460460
});
461461
});
462462
});

0 commit comments

Comments
 (0)