fix(curriculum): update test to assert variable exist (#66126)

This commit is contained in:
Aditya Singh 2026-02-27 15:19:50 +05:30 committed by GitHub
parent 791e329e67
commit e796c06e59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.