mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-03-19 15:01:06 +08:00
fix: Fix util package tests.
This commit is contained in:
parent
aca7b9eb56
commit
9d0cc45cff
@ -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>
|
||||
|
@ -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"
|
||||
/>
|
||||
`;
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user