superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccwilli...@apache.org
Subject [incubator-superset] branch master updated: [tests] fix sqllab/TableElement_spec (#5874)
Date Wed, 12 Sep 2018 19:32:49 GMT
This is an automated email from the ASF dual-hosted git repository.

ccwilliams pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new bec0b4c  [tests] fix sqllab/TableElement_spec (#5874)
bec0b4c is described below

commit bec0b4cc37f15b2091f81a0c40bb585dd1d5c676
Author: Chris Williams <williaster@users.noreply.github.com>
AuthorDate: Wed Sep 12 12:32:46 2018 -0700

    [tests] fix sqllab/TableElement_spec (#5874)
---
 superset/assets/spec/javascripts/sqllab/TableElement_spec.jsx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/superset/assets/spec/javascripts/sqllab/TableElement_spec.jsx b/superset/assets/spec/javascripts/sqllab/TableElement_spec.jsx
index 9909bd6..b5d8b76 100644
--- a/superset/assets/spec/javascripts/sqllab/TableElement_spec.jsx
+++ b/superset/assets/spec/javascripts/sqllab/TableElement_spec.jsx
@@ -54,8 +54,6 @@ describe('TableElement', () => {
     expect(wrapper.state().expanded).to.equal(true);
     wrapper.find('.table-remove').simulate('click');
     expect(wrapper.state().expanded).to.equal(false);
-    setTimeout(() => {
-      expect(mockedActions.removeTable.called).to.equal(true);
-    }, 10);
+    expect(mockedActions.removeDataPreview.called).to.equal(true);
   });
 });


Mime
View raw message