From ba1c210f036cdd29befb9a80b40e66ca257d17d1 Mon Sep 17 00:00:00 2001 From: Pawel Kadluczka Date: Tue, 3 Oct 2017 13:49:54 -0700 Subject: [PATCH] Fixing JS end-to-end tests --- .../wwwroot/js/hubConnectionTests.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/client-ts/Microsoft.AspNetCore.SignalR.Test.Server/wwwroot/js/hubConnectionTests.js b/client-ts/Microsoft.AspNetCore.SignalR.Test.Server/wwwroot/js/hubConnectionTests.js index 17e3bf2728..71404e8e49 100644 --- a/client-ts/Microsoft.AspNetCore.SignalR.Test.Server/wwwroot/js/hubConnectionTests.js +++ b/client-ts/Microsoft.AspNetCore.SignalR.Test.Server/wwwroot/js/hubConnectionTests.js @@ -46,15 +46,8 @@ describe('hubConnection', function () { var hubConnection = new signalR.HubConnection(TESTHUBENDPOINT_URL, options); hubConnection.on('CustomObject', function (customObject) { - // messageapack does not have a setting to use camelCasing - if (protocol.name == 'messagepack') { - expect(customObject.Name).toBe('test'); - expect(customObject.Value).toBe(42); - } - else { - expect(customObject.name).toBe('test'); - expect(customObject.value).toBe(42); - } + expect(customObject.Name).toBe('test'); + expect(customObject.Value).toBe(42); hubConnection.stop(); });