Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D72117E8B for ; Fri, 17 Apr 2015 20:10:11 +0000 (UTC) Received: (qmail 57672 invoked by uid 500); 17 Apr 2015 20:10:11 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 57609 invoked by uid 500); 17 Apr 2015 20:10:11 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 57598 invoked by uid 99); 17 Apr 2015 20:10:10 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 20:10:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C26A9DFF8A; Fri, 17 Apr 2015 20:10:10 +0000 (UTC) From: michellephung To: dev@couchdb.apache.org Reply-To: dev@couchdb.apache.org References: In-Reply-To: Subject: [GitHub] couchdb-fauxton pull request: Test for error handling in Active Ta... Content-Type: text/plain Message-Id: <20150417201010.C26A9DFF8A@git1-us-west.apache.org> Date: Fri, 17 Apr 2015 20:10:10 +0000 (UTC) Github user michellephung commented on a diff in the pull request: https://github.com/apache/couchdb-fauxton/pull/388#discussion_r28626153 --- Diff: app/addons/activetasks/tests/activetasks.componentsSpec.react.jsx --- @@ -70,6 +70,14 @@ define([ window.confirm.restore && window.confirm.restore(); }); + + it('it displays a message instead of an empty table, if there are undefined active tasks', function () { + spy = sinon.spy(Actions, 'setCollection'); --- End diff -- :/ i'm not really asserting that the spy is called, that's not what i'm testing for. but if i leave the spy uninitialized, the afterEach function calls spy.restore, and errors at that point. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---