diff --git a/lib/server.js b/lib/server.js index 5db7f1634..cbad577ed 100644 --- a/lib/server.js +++ b/lib/server.js @@ -375,7 +375,8 @@ class Server extends KarmaEventEmitter { } static start (cliOptions, done) { - return new Server(cliOptions, done) + console.warn('Deprecated static method to be removed in v3.0') + return new Server(cliOptions, done).start() } } diff --git a/test/unit/server.spec.js b/test/unit/server.spec.js index 3b0a23d61..a13104739 100644 --- a/test/unit/server.spec.js +++ b/test/unit/server.spec.js @@ -241,8 +241,4 @@ describe('server', () => { } }) }) - - it('static Server constructs a server', () => { - expect(Server.start(mockConfig) instanceof Server).to.be.true - }) })