Skip to content

Commit

Permalink
fix(test): fix options.test.js (#1985)
Browse files Browse the repository at this point in the history
  • Loading branch information
knagaitsev authored and evilebottnawi committed Jun 6, 2019
1 parent 638d7a1 commit 251f7f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/options.test.js
Expand Up @@ -49,7 +49,7 @@ describe('options', () => {
.then(() => {
const opts =
Object.prototype.toString.call(value) === '[object Object]' &&
Object.keys(value) !== 0
Object.keys(value).length !== 0
? value
: {
[propertyName]: value,
Expand All @@ -58,7 +58,7 @@ describe('options', () => {
server = new Server(compiler, opts);
})
.then(() => {
if (current <= successCount) {
if (current < successCount) {
expect(true).toBeTruthy();
} else {
expect(false).toBeTruthy();
Expand Down Expand Up @@ -347,7 +347,7 @@ describe('options', () => {
require.resolve('../lib/servers/SockJSServer'),
SockJSServer,
],
failure: ['', false],
failure: [false],
},
serverSideRender: {
success: [true],
Expand Down Expand Up @@ -388,7 +388,7 @@ describe('options', () => {
'normal',
'verbose',
],
failure: [false, 'whoops!', null],
failure: ['whoops!', null],
},
useLocalIp: {
success: [false],
Expand Down

0 comments on commit 251f7f9

Please sign in to comment.