summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2012-11-20 10:52:45 +0100
committerAzul <azul@riseup.net>2012-11-20 10:52:45 +0100
commitcb46537c98db3cb7ac8cf23de243a86aa4a36acd (patch)
tree63cba32a93535d5cfe776d5fc0861f7ba3dcff6f /spec
parent555491c4420a3b8b23b74fb081b76a5bf7778049 (diff)
sending the parsed json object to the error handler
Diffstat (limited to 'spec')
-rw-r--r--spec/login_spec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/login_spec.js b/spec/login_spec.js
index da343a5..16a63d0 100644
--- a/spec/login_spec.js
+++ b/spec/login_spec.js
@@ -64,7 +64,7 @@ describe("Login with srp var", function() {
expect(srp.error).toHaveBeenCalled;
var args = srp.error.args[0];
- expect($.parseJSON(args[0].responseText)).toEqual(error);
+ expect(args[0]).toEqual(error);
});
it("rejects B = 0", function(){