Skip to content

Commit b84512d

Browse files
committed
Update setPublicPath test
1 parent fdc09e4 commit b84512d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/WebpackConfig.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,9 @@ describe('WebpackConfig object', () => {
100100

101101
it('foo/ throws an exception', () => {
102102
const config = createConfig();
103+
config.setPublicPath('foo');
103104

104-
expect(() => {
105-
config.setPublicPath('foo/');
106-
}).to.throw('The value passed to setPublicPath() must start with "/"');
105+
expect(logger.getMessages().warning).to.have.lengthOf(1);
107106
});
108107
});
109108

0 commit comments

Comments
 (0)