From 5500d2fb5bf3eae00201f780680f5dbfe516c3f7 Mon Sep 17 00:00:00 2001 From: kevbite Date: Sat, 29 Oct 2016 15:12:13 +0100 Subject: [PATCH] Updated code based on PR. --- Connect4.js/src/app/connect4-client.ts | 4 ++-- Connect4.js/src/test/app.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Connect4.js/src/app/connect4-client.ts b/Connect4.js/src/app/connect4-client.ts index dc3ab94..486cd03 100644 --- a/Connect4.js/src/app/connect4-client.ts +++ b/Connect4.js/src/app/connect4-client.ts @@ -48,12 +48,12 @@ export default class { } registerTeam(teamName: string, password: string): Promise> { - const qs = querystring.stringify({ teamName: teamName, password: password }); + const qs = querystring.stringify({ teamName, password }); return this.do('POST', `/api/Register?${qs}`); } makeMove(playerId: string, password: string, columnNumber: number): Promise> { - const qs = querystring.stringify({ playerID: playerId, columnNumber: columnNumber, password: password }); + const qs = querystring.stringify({ playerID: playerId, columnNumber, password }); return this.do('POST', `/api/MakeMove?${qs}`); } diff --git a/Connect4.js/src/test/app.test.ts b/Connect4.js/src/test/app.test.ts index df24d95..2ea91a1 100644 --- a/Connect4.js/src/test/app.test.ts +++ b/Connect4.js/src/test/app.test.ts @@ -1,3 +1,3 @@ import * as assert from 'assert' -// I should of really written some test... :-/ \ No newline at end of file +// I should have of really written some test... :-/ \ No newline at end of file