Skip to content

Commit

Permalink
test: add a test for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mprobst authored Feb 11, 2022
1 parent e8f82bb commit 8379379
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/googmodule.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,10 @@ describe('googmodule loader', function() {
{originalPath: '/some/file.js'}, doneFn);
sinon.assert.calledWith(doneFn, sinon.match(/goog\.loadModule/));
});

it('handles goog.module statements after comments', function() {
preprocessor('/* comment */goog.module(\'my.module\');\ncontent();',
{originalPath: '/some/file.js'}, doneFn);
sinon.assert.calledWith(doneFn, sinon.match(/goog\.loadModule/));
});
});

0 comments on commit 8379379

Please sign in to comment.