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

Commit

Permalink
add compact:true objectShorthand:false test
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored and lukastaegert committed May 7, 2018
1 parent fdd287d commit 3dedacd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ describe( 'rollup-pluginutils', function () {

it( 'supports a compact argument', function () {
assert.equal( dataToEsm( { some: 'data', another: 'data' }, { compact: true, objectShorthand: true } ), 'export var some="data";export var another="data";export default{some,another};' );
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};' );
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};' );
});
});
});

0 comments on commit 3dedacd

Please sign in to comment.