We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c89d3c1 commit fdc6d31Copy full SHA for fdc6d31
test/server/open-option.test.js
@@ -21,9 +21,18 @@ describe('open option', () => {
21
});
22
23
compiler.hooks.done.tap('webpack-dev-server', () => {
24
- expect(opn.mock.calls[0]).toEqual(['http://localhost:8080/', {}]);
25
- expect(opn.mock.invocationCallOrder[0]).toEqual(1);
26
- server.close(done);
+ server.close(() => {
+ expect(opn.mock.calls[0]).toMatchInlineSnapshot(`
+ Array [
27
+ "http://localhost:8080/",
28
+ Object {
29
+ "wait": false,
30
+ },
31
+ ]
32
+ `);
33
+ expect(opn.mock.invocationCallOrder[0]).toEqual(1);
34
+ done();
35
+ });
36
37
38
compiler.run(() => {});
0 commit comments