about summary refs log tree commit diff
path: root/spec/javascript/components/loading_indicator.test.jsx
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2016-10-12 12:00:36 +0200
committerGitHub <noreply@github.com>2016-10-12 12:00:36 +0200
commit8d8ef18bb6ae119c6962c1e19c2026908776c7c7 (patch)
tree96601663ef7e08c3d7db11e374578f7137ba9762 /spec/javascript/components/loading_indicator.test.jsx
parent77efdfa1104a77061f014bbc84268028597620cb (diff)
parentecd4042c209a402c1ccace7e2b989783dce03436 (diff)
Merge pull request #89 from kschaper/react-testing
React testing
Diffstat (limited to 'spec/javascript/components/loading_indicator.test.jsx')
-rw-r--r--spec/javascript/components/loading_indicator.test.jsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/javascript/components/loading_indicator.test.jsx b/spec/javascript/components/loading_indicator.test.jsx
new file mode 100644
index 000000000..7039dbfbd
--- /dev/null
+++ b/spec/javascript/components/loading_indicator.test.jsx
@@ -0,0 +1,11 @@
+import { expect } from 'chai';
+import { shallow } from 'enzyme';
+
+import LoadingIndicator from '../../../app/assets/javascripts/components/components/loading_indicator'
+
+describe('<LoadingIndicator />', () => {
+  it('renders text that indicates loading', () => {
+    const wrapper = shallow(<LoadingIndicator />);
+    expect(wrapper.text()).to.match(/loading/i);
+  });
+});