Skip to content

Commit 251f7f9

Browse files
knagaitsevevilebottnawi
authored andcommitted
fix(test): fix options.test.js (#1985)
1 parent 638d7a1 commit 251f7f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/options.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('options', () => {
4949
.then(() => {
5050
const opts =
5151
Object.prototype.toString.call(value) === '[object Object]' &&
52-
Object.keys(value) !== 0
52+
Object.keys(value).length !== 0
5353
? value
5454
: {
5555
[propertyName]: value,
@@ -58,7 +58,7 @@ describe('options', () => {
5858
server = new Server(compiler, opts);
5959
})
6060
.then(() => {
61-
if (current <= successCount) {
61+
if (current < successCount) {
6262
expect(true).toBeTruthy();
6363
} else {
6464
expect(false).toBeTruthy();
@@ -347,7 +347,7 @@ describe('options', () => {
347347
require.resolve('../lib/servers/SockJSServer'),
348348
SockJSServer,
349349
],
350-
failure: ['', false],
350+
failure: [false],
351351
},
352352
serverSideRender: {
353353
success: [true],
@@ -388,7 +388,7 @@ describe('options', () => {
388388
'normal',
389389
'verbose',
390390
],
391-
failure: [false, 'whoops!', null],
391+
failure: ['whoops!', null],
392392
},
393393
useLocalIp: {
394394
success: [false],

0 commit comments

Comments
 (0)