diff options
author | Thais Siqueira <thais.siqueira@gmail.com> | 2017-02-24 14:27:31 -0300 |
---|---|---|
committer | Thais Siqueira <thais.siqueira@gmail.com> | 2017-02-24 14:27:31 -0300 |
commit | fec26b211a42b068e677ac5b43080bd4bf59e47a (patch) | |
tree | e5bb685c1370e7e10cc707258fa235d953f426a3 /web-ui/src/common/header | |
parent | fb4630207d86d39ea05dd679b2724be87597c518 (diff) |
[#907] Moves tests to directories components
Diffstat (limited to 'web-ui/src/common/header')
-rw-r--r-- | web-ui/src/common/header/header.spec.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/web-ui/src/common/header/header.spec.js b/web-ui/src/common/header/header.spec.js new file mode 100644 index 00000000..82e29e1c --- /dev/null +++ b/web-ui/src/common/header/header.spec.js @@ -0,0 +1,17 @@ +import { shallow } from 'enzyme'; +import expect from 'expect'; +import React from 'react'; +import { Header } from 'src/common/header/header'; + +describe('Header', () => { + let header; + + beforeEach(() => { + const mockTranslations = key => key; + header = shallow(<Header t={mockTranslations} />); + }); + + it('renders the header content', () => { + expect(header.find('header').text()).toContain('logout'); + }); +}); |