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

Commit

Permalink
Add: Tests case for supporting ./ in entry filename
Browse files Browse the repository at this point in the history
  • Loading branch information
lammas committed Jun 17, 2016
1 parent 3ce9644 commit 07cfdab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,16 @@ describe( 'rollup-plugin-node-resolve', function () {
assert.equal( result, null );
});
});

it( 'supports ./ in entry filename', () => {
return rollup.rollup({
entry: './samples/jsnext/main.js',
plugins: [
nodeResolve({ jsnext: true })
]
}).then( executeBundle ).then( module => {
assert.equal( module.exports, '2H' );
});
});

});

0 comments on commit 07cfdab

Please sign in to comment.