fix: Fix util package tests.

This commit is contained in:
Sam 2022-02-16 11:45:01 +02:00
parent aca7b9eb56
commit 9d0cc45cff
No known key found for this signature in database
GPG Key ID: D004126FCD1A6DF0
3 changed files with 11 additions and 2 deletions

View File

@ -85,7 +85,7 @@ exports[`display fallback component on error generated by child 1`] = `
</div>
`;
exports[`display no error message on error generated by child 1`] = ``;
exports[`display no error message on error generated by child 1`] = `null`;
exports[`no error 1`] = `
<div>

View File

@ -21,6 +21,7 @@ exports[`Icon onClick.loading false 1`] = `
class="emotion-0"
data-testid="AiIcon"
id="test-id"
title="AiIcon"
/>
`;
@ -29,6 +30,7 @@ exports[`Icon onClick.loading true 1`] = `
class="emotion-0"
data-testid="AiOutlineLoading3Quarters"
id="test-id"
title="AiIcon"
/>
`;
@ -37,6 +39,7 @@ exports[`Icon properties string 1`] = `
class="emotion-0"
data-testid="AiIcon"
id="test-id"
title="AiIcon"
/>
`;
@ -45,6 +48,7 @@ exports[`Icon properties.name 1`] = `
class="emotion-0"
data-testid="AiIcon"
id="test-id"
title="AiIcon"
/>
`;
@ -54,6 +58,7 @@ exports[`Icon properties.name error 1`] = `
color="#F00"
data-testid="AiOutlineExclamationCircle"
id="test-id"
title="ErrorIcon"
/>
`;
@ -83,6 +88,7 @@ exports[`Icon properties.spin 1`] = `
class="emotion-0 emotion-1"
data-testid="AiIcon"
id="test-id"
title="AiIcon"
/>
`;
@ -95,5 +101,6 @@ exports[`Icon properties.style 1`] = `
class="emotion-0"
data-testid="AiIcon"
id="test-id"
title="AiIcon"
/>
`;

View File

@ -27,7 +27,8 @@ test('Get config from env', () => {
LOWDEFY_SERVER_BUILD_DIRECTORY: 'build',
LOWDEFY_SERVER_PUBLIC_DIRECTORY: 'public',
LOWDEFY_SERVER_PORT: '8080',
LOWDEFY_SERVER_BASE_PATH: 'base',
LOWDEFY_BASE_PATH: 'base',
LOWDEFY_SERVER_LOG_LEVEL: 'verbose',
OTHER_VAR: 'other',
ANOTHER_VAR: 'another',
ASDF_GHJK: 'asdfghjk',
@ -35,6 +36,7 @@ test('Get config from env', () => {
const config = getConfigFromEnv();
expect(config).toEqual({
buildDirectory: 'build',
logLevel: 'verbose',
publicDirectory: 'public',
port: 8080,
basePath: 'base',