Skip to content

Commit 90bbb7f

Browse files
committed
More linting from PR
1 parent 5fb5b24 commit 90bbb7f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/cases/unittests/session.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path="..\..\..\src\harness\harness.ts" />
22

3-
module ts.server {
3+
namespace ts.server {
44
let lastWrittenToHost: string;
55
const mockHost: ServerHost = {
66
args: [],
@@ -256,8 +256,8 @@ module ts.server {
256256
describe("how Session is extendable via subclassing", () => {
257257
class TestSession extends Session {
258258
lastSent: protocol.Message;
259-
customHandler: string = "testhandler";
260-
constructor(){
259+
customHandler = "testhandler";
260+
constructor() {
261261
super(mockHost, Buffer.byteLength, process.hrtime, mockLogger);
262262
this.addProtocolHandler(this.customHandler, () => {
263263
return {response: undefined, responseRequired: true};
@@ -315,7 +315,7 @@ module ts.server {
315315
describe("an example of using the Session API to create an in-process server", () => {
316316
class InProcSession extends Session {
317317
private queue: protocol.Request[] = [];
318-
constructor(private client: {handle: (msg: protocol.Message) => void}) {
318+
constructor(private client: InProcClient) {
319319
super(mockHost, Buffer.byteLength, process.hrtime, mockLogger);
320320
this.addProtocolHandler("echo", (req: protocol.Request) => ({
321321
response: req.arguments,
@@ -355,7 +355,7 @@ module ts.server {
355355

356356
class InProcClient {
357357
private server: InProcSession;
358-
private seq: number = 0;
358+
private seq = 0;
359359
private callbacks: ts.Map<(resp: protocol.Response) => void> = {};
360360
private eventHandlers: ts.Map<(args: any) => void> = {};
361361

0 commit comments

Comments
 (0)