mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
* 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
24 lines
615 B
JavaScript
24 lines
615 B
JavaScript
import expect from 'expect';
|
|
|
|
import { configStub } from 'test/stubs';
|
|
import helpers from 'redux/nodes/app/helpers';
|
|
|
|
describe('redux app node - helpers', () => {
|
|
describe('#frontendFormattedConfig', () => {
|
|
const { frontendFormattedConfig } = helpers;
|
|
|
|
it('returns a flattened config object', () => {
|
|
const {
|
|
org_info: orgInfo,
|
|
server_settings: serverSettings,
|
|
smtp_settings: smtpSettings,
|
|
} = configStub;
|
|
|
|
expect(frontendFormattedConfig(configStub)).toEqual({
|
|
...orgInfo,
|
|
...serverSettings,
|
|
...smtpSettings,
|
|
});
|
|
});
|
|
});
|
|
});
|