Skip to content

Commit 40d836a

Browse files
authored
fix(server): actually call stert(). (#3062)
Warn that the function without a test will be removed
1 parent 414b84c commit 40d836a

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

lib/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,8 @@ class Server extends KarmaEventEmitter {
375375
}
376376

377377
static start (cliOptions, done) {
378-
return new Server(cliOptions, done)
378+
console.warn('Deprecated static method to be removed in v3.0')
379+
return new Server(cliOptions, done).start()
379380
}
380381
}
381382

test/unit/server.spec.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,4 @@ describe('server', () => {
241241
}
242242
})
243243
})
244-
245-
it('static Server constructs a server', () => {
246-
expect(Server.start(mockConfig) instanceof Server).to.be.true
247-
})
248244
})

0 commit comments

Comments
 (0)