summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorTayane Fernandes <tayane.rmf@gmail.com>2017-02-07 17:39:09 -0200
committerTayane Fernandes <tayane.rmf@gmail.com>2017-02-07 17:39:09 -0200
commitbc922deb23a72d6ca1bf4c39efd1d7366baa9a84 (patch)
treeadf216625b4fb30c79e7577c990ac669da73c204 /web-ui/test
parentebd5b3adce44a16213e5c1ec763a642899eba908 (diff)
[#922] Refactoring react folder structure
with @anikarni
Diffstat (limited to 'web-ui/test')
-rw-r--r--web-ui/test/jasmine.json9
-rw-r--r--web-ui/test/test-main.js2
-rw-r--r--web-ui/test/unit/account_recovery/page.spec.js (renamed from web-ui/test/spec/account_recovery/page.spec.js)4
3 files changed, 3 insertions, 12 deletions
diff --git a/web-ui/test/jasmine.json b/web-ui/test/jasmine.json
deleted file mode 100644
index 969304b6..00000000
--- a/web-ui/test/jasmine.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "spec_dir": "test/spec/account_recovery/",
- "spec_files": [
- "**/*[sS]pec.js"
- ],
- "helpers": [
- "helpers/**/*.js"
- ]
-}
diff --git a/web-ui/test/test-main.js b/web-ui/test/test-main.js
index b7dc430f..4396993f 100644
--- a/web-ui/test/test-main.js
+++ b/web-ui/test/test-main.js
@@ -1,7 +1,7 @@
var tests = Object.keys(window.__karma__.files).filter(function (file) {
'use strict';
- return !(/account_recovery/.test(file)) && (/\.spec\.js$/.test(file));
+ return (/\.spec\.js$/.test(file));
});
beforeEach(function() {
diff --git a/web-ui/test/spec/account_recovery/page.spec.js b/web-ui/test/unit/account_recovery/page.spec.js
index 3e19f244..151f09e1 100644
--- a/web-ui/test/spec/account_recovery/page.spec.js
+++ b/web-ui/test/unit/account_recovery/page.spec.js
@@ -1,7 +1,7 @@
-import {shallow} from 'enzyme'
+import { shallow } from 'enzyme'
import expect from 'expect'
import React from 'react'
-import { Page } from '../../../app/js/account_recovery/page'
+import { Page } from 'src/account_recovery/page'
describe('Page', () => {
it('renders backup email page title', () => {