mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 09:18:59 +00:00
ee6832c743
* AppSettingsPage at /admin/settings * Adds App Settings to site nav items * SMTP not configured warning * Creates AppConfigForm * Avatar preview * API client to update app config * Creates OrgLogoIcon component * Hide username/password when no auth type
21 lines
634 B
JavaScript
21 lines
634 B
JavaScript
import React from 'react';
|
|
import expect from 'expect';
|
|
import { mount } from 'enzyme';
|
|
|
|
import kolideLogo from '../../../../assets/images/kolide-logo.svg';
|
|
import OrgLogoIcon from './OrgLogoIcon';
|
|
|
|
describe('OrgLogoIcon - component', () => {
|
|
it('renders the Kolide Logo by default', () => {
|
|
const component = mount(<OrgLogoIcon />);
|
|
|
|
expect(component.state('imageSrc')).toEqual(kolideLogo);
|
|
});
|
|
|
|
it('renders the image source when it is valid', () => {
|
|
const component = mount(<OrgLogoIcon src="/assets/images/avatar.svg" />);
|
|
|
|
expect(component.state('imageSrc')).toEqual('/assets/images/avatar.svg');
|
|
});
|
|
});
|