summaryrefslogtreecommitdiff
path: root/web-ui/src/login/error/generic_error.spec.js
blob: 1ef8349d9f5c256cdbbda47aa2233f3f0476c202 (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 { GenericError } from 'src/login/error/generic_error';

describe('GenericError', () => {
  let genericError;
  const mockTranslations = key => key;

  beforeEach(() => {
    genericError = shallow(<GenericError t={mockTranslations} />);
  });

  it('renders error message', () => {
    expect(genericError.find('.generic-error').length).toEqual(1);
  });
});