From f5aa98d43697dd26b565d669d69956d927ffe969 Mon Sep 17 00:00:00 2001 From: johnjbarton Date: Wed, 20 Jun 2018 13:01:58 -0700 Subject: [PATCH] fix(server): actually call stert(). Warn that the function without a test will be removed --- lib/server.js | 3 ++- test/unit/server.spec.js | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) 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 - }) })