Add strip whitespace and trailing eol to spec too. (#3159)
This commit is contained in:
committed by
Florent Vilmart
parent
8359284329
commit
37daafc7b0
@@ -272,7 +272,7 @@ describe("httpRequest", () => {
|
||||
Parse._encode(httpResponse);
|
||||
let serialized = JSON.stringify(httpResponse);
|
||||
let result = JSON.parse(serialized);
|
||||
|
||||
|
||||
expect(httpResponse.text).toEqual('{"foo":"bar"}');
|
||||
expect(httpResponse.data).toEqual({foo: 'bar'});
|
||||
expect(httpResponse.body).toEqual({foo: 'bar'});
|
||||
|
||||
Reference in New Issue
Block a user