diff options
author | Anike Arni <aarni@thoughtworks.com> | 2017-02-22 15:21:18 -0300 |
---|---|---|
committer | Anike Arni <aarni@thoughtworks.com> | 2017-02-22 15:22:57 -0300 |
commit | ee20eb582e2edaac5b4ce3a6a7de51cd35a4a154 (patch) | |
tree | 2b5d6ec726b5144f10329599a49efba33bae5df2 /web-ui/test/unit | |
parent | f25be937af22146f5ef83b81d73453f2fb536c50 (diff) |
[#907] Makes logo smaller on mobile generic error
with @SweetVirginia
Diffstat (limited to 'web-ui/test/unit')
-rw-r--r-- | web-ui/test/unit/login/app.spec.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/web-ui/test/unit/login/app.spec.js b/web-ui/test/unit/login/app.spec.js index e329af0f..2036dfd7 100644 --- a/web-ui/test/unit/login/app.spec.js +++ b/web-ui/test/unit/login/app.spec.js @@ -40,4 +40,15 @@ describe('App', () => { expect(app.find(AuthError).length).toEqual(0); expect(app.find(GenericError).length).toEqual(0); }); + + it('adds small logo class when error', () => { + app = shallow(<App t={mockTranslations} error />); + expect(app.find('.logo').props().className).toEqual('logo small-logo'); + }); + + it('does not add small logo class when no error', () => { + app = shallow(<App t={mockTranslations} />); + expect(app.find('.logo').props().className).toEqual('logo'); + }); + }); |