From 72361a53117a0be72cacf68d9e76ed2a1e61149b Mon Sep 17 00:00:00 2001 From: Leonardo Souza Date: Tue, 16 May 2017 09:04:59 -0300 Subject: [PATCH] Update fetchCurrentUser-test.js Changing current example (jQuery test) for simplify the understanding The motivation for this change is why the output for current example (in verbose mode) is very strange --- examples/jquery/__tests__/fetchCurrentUser-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/jquery/__tests__/fetchCurrentUser-test.js b/examples/jquery/__tests__/fetchCurrentUser-test.js index 95b7328d09ec..89faaba3f2ff 100644 --- a/examples/jquery/__tests__/fetchCurrentUser-test.js +++ b/examples/jquery/__tests__/fetchCurrentUser-test.js @@ -33,13 +33,13 @@ it('calls the callback when $.ajax requests are finished', () => { // callback $.ajax.mock.calls[0 /*first call*/][0 /*first argument*/].success({ firstName: 'Bobby', - lastName: '");DROP TABLE Users;--', + lastName: 'Marley', }); // And finally we assert that this emulated call by `$.ajax` incurred a // call back into the mock function we provided as a callback expect(callback.mock.calls[0 /*first call*/][0 /*first arg*/]).toEqual({ - fullName: 'Bobby ");DROP TABLE Users;--', + fullName: 'Bobby Marley', loggedIn: true, }); });