mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
fix(curriculum): make test consistent with lowercase storage (#66420)
Some checks failed
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
i18n - Download Client UI / Client (push) Has been cancelled
Some checks failed
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
i18n - Download Client UI / Client (push) Has been cancelled
This commit is contained in:
parent
854f619472
commit
96fa06b101
@ -389,9 +389,9 @@ The `view_settings` function should have one parameter.
|
||||
```js
|
||||
({
|
||||
test: () => runPython(`
|
||||
settings_in_test = {"theme": "light", "language": "English", "notifications": "enabled"}
|
||||
settings_in_test = {"theme": "light", "language": "english", "notifications": "enabled"}
|
||||
result = view_settings(settings_in_test)
|
||||
assert result == "Current User Settings:\\nTheme: light\\nLanguage: English\\nNotifications: enabled\\n"
|
||||
assert result == "Current User Settings:\\nTheme: light\\nLanguage: english\\nNotifications: enabled\\n"
|
||||
`)
|
||||
})
|
||||
|
||||
@ -447,7 +447,7 @@ def view_settings(settings):
|
||||
|
||||
test_settings = {
|
||||
"theme": "light",
|
||||
"language": "English",
|
||||
"language": "english",
|
||||
"notifications": "enabled"
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user