couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject fauxton commit: updated refs/heads/master to ffa1cf0
Date Wed, 08 Apr 2015 12:44:50 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master e7920f3b1 -> ffa1cf056


test: remove confirmdialog

when running the testsuite in the browser tests were stopped unti
confirming with `OK`

PR: #357
PR-URL: https://github.com/apache/couchdb-fauxton/pull/357
Reviewed-By: Michelle Phung <michellephung@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/ffa1cf05
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/ffa1cf05
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/ffa1cf05

Branch: refs/heads/master
Commit: ffa1cf056b868a76750364856d2db566e021e57e
Parents: e7920f3
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Fri Apr 3 22:18:13 2015 +0200
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Wed Apr 8 14:45:34 2015 +0200

----------------------------------------------------------------------
 app/addons/cors/tests/componentsSpec.react.jsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/ffa1cf05/app/addons/cors/tests/componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/cors/tests/componentsSpec.react.jsx b/app/addons/cors/tests/componentsSpec.react.jsx
index d71f355..cbd2fb0 100644
--- a/app/addons/cors/tests/componentsSpec.react.jsx
+++ b/app/addons/cors/tests/componentsSpec.react.jsx
@@ -172,9 +172,11 @@ define([
       });
 
       it('should confirm on delete', function () {
-        var spy = sinon.spy(window, 'confirm');
+        var stub = sinon.stub(window, 'confirm');
+        stub.returns(true);
+
         TestUtils.Simulate.click($(originTableEl.getDOMNode()).find('.fonticon-trash')[0]);
-        assert.ok(spy.calledOnce);
+        assert.ok(stub.calledOnce);
       });
 
       it('should deleteOrigin on confirm true', function () {


Mime
View raw message