diff options
author | Anike Arni <anikarni@gmail.com> | 2017-02-02 18:14:53 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-02 18:14:53 -0200 |
commit | 84c5fc7871206c74bb50df2f618992b0d57ca397 (patch) | |
tree | fb148b22b2c6c1ca7cc30c5acc83d781704ade87 /web-ui/test | |
parent | 98abd30f1ecf7c8d6ef3d5ecce90396a2868a1fc (diff) | |
parent | 1a37dcd2dc8a02eda2a0cc3f90521b0ebc1c9198 (diff) |
Merge pull request #958 from pixelated/backup-email-page
Adding react initial configuration
Diffstat (limited to 'web-ui/test')
-rw-r--r-- | web-ui/test/jasmine.json | 9 | ||||
-rw-r--r-- | web-ui/test/spec/account_recovery/account_recovery.spec.js | 11 | ||||
-rw-r--r-- | web-ui/test/test-main.js | 2 |
3 files changed, 21 insertions, 1 deletions
diff --git a/web-ui/test/jasmine.json b/web-ui/test/jasmine.json new file mode 100644 index 00000000..969304b6 --- /dev/null +++ b/web-ui/test/jasmine.json @@ -0,0 +1,9 @@ +{ + "spec_dir": "test/spec/account_recovery/", + "spec_files": [ + "**/*[sS]pec.js" + ], + "helpers": [ + "helpers/**/*.js" + ] +} diff --git a/web-ui/test/spec/account_recovery/account_recovery.spec.js b/web-ui/test/spec/account_recovery/account_recovery.spec.js new file mode 100644 index 00000000..d153f0eb --- /dev/null +++ b/web-ui/test/spec/account_recovery/account_recovery.spec.js @@ -0,0 +1,11 @@ +import {shallow} from 'enzyme' +import React from 'react' +import Page from '../../../app/js/account_recovery/page' + +describe('test', () => { + 'use strict'; + it('react', () => { + const page = shallow(<Page />); + expect(page.find('h1').text()).toEqual('Hello world'); + }); +}); diff --git a/web-ui/test/test-main.js b/web-ui/test/test-main.js index 4396993f..b7dc430f 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 (/\.spec\.js$/.test(file)); + return !(/account_recovery/.test(file)) && (/\.spec\.js$/.test(file)); }); beforeEach(function() { |