Skip to content

Commit 5ab6822

Browse files
David EllingsworthDavid Ellingsworth
David Ellingsworth
authored and
David Ellingsworth
committed
Include a regex in the tests of addExternals.
1 parent a51b35f commit 5ab6822

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/WebpackConfig.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,10 +944,12 @@ describe('WebpackConfig object', () => {
944944

945945
config.addExternals({ 'jquery': 'jQuery', 'react': 'react' });
946946
config.addExternals({ 'lodash': 'lodash' });
947+
config.addExternals(/^(jquery|\$)$/i);
947948

948949
expect(config.externals).to.deep.equals([
949950
{ 'jquery': 'jQuery', 'react': 'react'},
950-
{ 'lodash': 'lodash' }
951+
{ 'lodash': 'lodash' },
952+
/^(jquery|\$)$/i
951953
]);
952954
});
953955
});

0 commit comments

Comments
 (0)