summaryrefslogtreecommitdiff
path: root/web-ui/src/login/error/auth_error.spec.js
blob: 55d8920f544a5bc0be25c267c2666c935912c288 (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 { AuthError } from 'src/login/error/auth_error';

describe('AuthError', () => {
  let authError;
  const mockTranslations = key => key;

  beforeEach(() => {
    authError = shallow(<AuthError t={mockTranslations} />);
  });

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