Added front-end tests
[aai/sparky-fe.git] / test / app / Application.test.js
diff --git a/test/app/Application.test.js b/test/app/Application.test.js
new file mode 100644 (file)
index 0000000..87d6c4c
--- /dev/null
@@ -0,0 +1,14 @@
+import React from 'react';
+import {shallow} from 'enzyme';
+import Application from 'app/Application';
+
+describe('Application', () => {
+  it('renders children when passed in', () => {
+    const wrapper = shallow((
+      <Application>
+        <div className="unique"/>
+      </Application>
+    ));
+    expect(wrapper.contains(<div className="unique" />)).toEqual(true);
+  });
+});
\ No newline at end of file