Skip to content

Commit

Permalink
test: add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
elrrrrrrr committed Dec 14, 2015
1 parent 08d14fe commit fd246a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/util.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ describe('/lib/util.js', function() {
(util.resolveid('@1.0.0') === null).should.be.true;
(util.resolveid('[email protected]') === null).should.be.true;
});

it('should resolve id contains underscore', function* () {
util.resolveid('[email protected]').should.eql({
name: 'lodash._getnative',
version: '1.0'
});
});
});

0 comments on commit fd246a1

Please sign in to comment.