Permalink
Browse files

fixed tests

  • Loading branch information...
1 parent 234470e commit 0738146d6ab493fa7018ce7fa4cba14496e78e7f @Gordin Gordin committed Jun 28, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/tests.js
View
@@ -255,7 +255,7 @@ $(document).ready(function () {
var spy = sinon.spy();
- conn._onRequestStateChange(spy, req);
+ conn._proto._onRequestStateChange(spy, req);
equal(req.abort, false, "abort flag should be toggled");
equal(conn._requests.length, 1, "_requests should be same length");
@@ -277,7 +277,7 @@ $(document).ready(function () {
var spy = sinon.spy();
- conn._onRequestStateChange(spy, req);
+ conn._proto._onRequestStateChange(spy, req);
equal(conn._requests.length, 1, "_requests should be same length");
equal(spy.called, false, "callback should not be called");

0 comments on commit 0738146

Please sign in to comment.