From 90bbb7fb3c94300a406fc9deb6e3dcafdefed83b Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Thu, 23 Jul 2015 12:33:34 -0700 Subject: [PATCH] More linting from PR --- tests/cases/unittests/session.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/cases/unittests/session.ts b/tests/cases/unittests/session.ts index 1d2efbb498c..25be08293f2 100644 --- a/tests/cases/unittests/session.ts +++ b/tests/cases/unittests/session.ts @@ -1,6 +1,6 @@ /// -module ts.server { +namespace ts.server { let lastWrittenToHost: string; const mockHost: ServerHost = { args: [], @@ -256,8 +256,8 @@ module ts.server { describe("how Session is extendable via subclassing", () => { class TestSession extends Session { lastSent: protocol.Message; - customHandler: string = "testhandler"; - constructor(){ + customHandler = "testhandler"; + constructor() { super(mockHost, Buffer.byteLength, process.hrtime, mockLogger); this.addProtocolHandler(this.customHandler, () => { return {response: undefined, responseRequired: true}; @@ -315,7 +315,7 @@ module ts.server { describe("an example of using the Session API to create an in-process server", () => { class InProcSession extends Session { private queue: protocol.Request[] = []; - constructor(private client: {handle: (msg: protocol.Message) => void}) { + constructor(private client: InProcClient) { super(mockHost, Buffer.byteLength, process.hrtime, mockLogger); this.addProtocolHandler("echo", (req: protocol.Request) => ({ response: req.arguments, @@ -355,7 +355,7 @@ module ts.server { class InProcClient { private server: InProcSession; - private seq: number = 0; + private seq = 0; private callbacks: ts.Map<(resp: protocol.Response) => void> = {}; private eventHandlers: ts.Map<(args: any) => void> = {};