Fixing JS end-to-end tests

This commit is contained in:
Pawel Kadluczka 2017-10-03 13:49:54 -07:00 committed by Pawel Kadluczka
parent 8ab629d8f3
commit ba1c210f03
1 changed files with 2 additions and 9 deletions

View File

@ -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();
});