mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
fix(curriculum): update test to assert variable exist (#66126)
This commit is contained in:
parent
791e329e67
commit
e796c06e59
@ -32,7 +32,7 @@ You should assign the string `Data Analyst` to your `position` variable.
|
||||
You should have a variable named `salary`.
|
||||
|
||||
```js
|
||||
({ test: () => assert(runPython(`_Node(_code).find_variable("salary").is_equivalent("salary = 75000")`)) })
|
||||
({ test: () => assert(runPython(`_Node(_code).has_variable("salary")`)) })
|
||||
```
|
||||
|
||||
You should assign the integer `75000` to your `salary` variable.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user