mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-30 18:58:36 +02:00
fix test & typo
This commit is contained in:
parent
3149413b3a
commit
6f5c7e1926
2 changed files with 1 additions and 2 deletions
|
@ -672,7 +672,6 @@ describe('themeConfig', () => {
|
||||||
const colorMode: ThemeConfig['colorMode'] = {
|
const colorMode: ThemeConfig['colorMode'] = {
|
||||||
defaultMode: 'dark',
|
defaultMode: 'dark',
|
||||||
disableSwitch: false,
|
disableSwitch: false,
|
||||||
respectPrefersColorScheme: true,
|
|
||||||
};
|
};
|
||||||
expect(testValidateThemeConfig({colorMode})).toEqual({
|
expect(testValidateThemeConfig({colorMode})).toEqual({
|
||||||
...DEFAULT_CONFIG,
|
...DEFAULT_CONFIG,
|
||||||
|
|
|
@ -48,7 +48,7 @@ function ColorModeToggle({
|
||||||
}),
|
}),
|
||||||
system: () =>
|
system: () =>
|
||||||
translate({
|
translate({
|
||||||
message: 'autsystemo mode',
|
message: 'system mode',
|
||||||
id: 'theme.colorToggle.ariaLabel.mode.system',
|
id: 'theme.colorToggle.ariaLabel.mode.system',
|
||||||
description: 'The name for the system color mode',
|
description: 'The name for the system color mode',
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Reference in a new issue