summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorArul.Nambi <arul.nambi@amdocs.com>2018-07-11 14:19:41 -0400
committerArul.Nambi <arul.nambi@amdocs.com>2018-07-16 10:04:10 -0400
commit75597ac2b51ba62bee33f72a7b55a549cf43a16f (patch)
tree9e9b6826a51abbdd011e5449c4812e8cca6d58a1 /scripts
parent4cbfb73eebc578c62ff38c82f969782e229ce969 (diff)
Refactoring test scripts
Moving the test scripts under one folder and restucting them so that the clutter can be avoided in the src folder. Issue-ID: AAI-1371 Change-Id: I41b34acbe79a7a3409f2990f11492614f7ef9c5a Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/test/fileMock.js1
-rw-r--r--scripts/test/setupTests.js5
-rw-r--r--scripts/test/styleMock.js1
3 files changed, 7 insertions, 0 deletions
diff --git a/scripts/test/fileMock.js b/scripts/test/fileMock.js
new file mode 100644
index 0000000..86059f3
--- /dev/null
+++ b/scripts/test/fileMock.js
@@ -0,0 +1 @@
+module.exports = 'test-file-stub';
diff --git a/scripts/test/setupTests.js b/scripts/test/setupTests.js
new file mode 100644
index 0000000..7237dc9
--- /dev/null
+++ b/scripts/test/setupTests.js
@@ -0,0 +1,5 @@
+import { configure } from 'enzyme';
+import Adapter from 'enzyme-adapter-react-15';
+import 'jest-enzyme';
+
+configure({ adapter: new Adapter() });
diff --git a/scripts/test/styleMock.js b/scripts/test/styleMock.js
new file mode 100644
index 0000000..f053ebf
--- /dev/null
+++ b/scripts/test/styleMock.js
@@ -0,0 +1 @@
+module.exports = {};