Skip to content

Commit

Permalink
test: update
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Apr 28, 2020
1 parent d627b88 commit 754d081
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ class Server {
this.sockWrite([connection], 'log-level', this.clientLogLevel);
}

if (this.options.hot) {
if (this.options.hot === true || this.options.hot === 'only') {
this.sockWrite([connection], 'hot');
}

Expand Down
8 changes: 0 additions & 8 deletions test/e2e/TransportMode.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const {
initConsoleDelay,
awaitServerCloseDelay,
} = require('../helpers/puppeteer-constants');
const isWebpack5 = require('../helpers/isWebpack5');

describe('transportMode client', () => {
const modes = [
Expand Down Expand Up @@ -79,13 +78,6 @@ describe('transportMode client', () => {
}
}

// TODO: delete this code when getting rid of webpack5
if (isWebpack5) {
const swap = res[0];
res[0] = res[1];
res[1] = swap;
}

expect(res).toMatchSnapshot();

done();
Expand Down
9 changes: 0 additions & 9 deletions test/helpers/isWebpack5.js

This file was deleted.

0 comments on commit 754d081

Please sign in to comment.