diff options
Diffstat (limited to 'web-ui/test')
| -rw-r--r-- | web-ui/test/unit/login/app.spec.js | 17 | 
1 files changed, 17 insertions, 0 deletions
diff --git a/web-ui/test/unit/login/app.spec.js b/web-ui/test/unit/login/app.spec.js new file mode 100644 index 00000000..3b6461cf --- /dev/null +++ b/web-ui/test/unit/login/app.spec.js @@ -0,0 +1,17 @@ +import { shallow } from 'enzyme'; +import expect from 'expect'; +import React from 'react'; +import { App } from 'src/login/app'; + +describe('App', () => { +  let app; + +  beforeEach(() => { +    const mockTranslations = key => key; +    app = shallow(<App t={mockTranslations} />); +  }); + +  it('renders login form', () => { +    expect(app.find('form').props().action).toEqual('/login'); +  }); +});  | 
