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

Commit 3dedacd

Browse files
guybedfordlukastaegert
authored andcommitted
add compact:true objectShorthand:false test
1 parent fdd287d commit 3dedacd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ describe( 'rollup-pluginutils', function () {
461461

462462
it( 'supports a compact argument', function () {
463463
assert.equal( dataToEsm( { some: 'data', another: 'data' }, { compact: true, objectShorthand: true } ), 'export var some="data";export var another="data";export default{some,another};' );
464-
assert.equal( dataToEsm( { some: { deep: { object: 'definition', here: 'here' } }, another: 'data' }, { compact: true, objectShorthand: true } ), 'export var some={deep:{object:"definition",here:"here"}};export var another="data";export default{some,another};' );
464+
assert.equal( dataToEsm( { some: { deep: { object: 'definition', here: 'here' } }, another: 'data' }, { compact: true, objectShorthand: false } ), 'export var some={deep:{object:"definition",here:"here"}};export var another="data";export default{some:some,another:another};' );
465465
});
466466
});
467467
});

0 commit comments

Comments
 (0)