blob: 3b6461cf453a53109d6ecebf5dca6f551f0b48d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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');
});
});
|