fix(curriculum): allow space after contructor keyword (#55749)

This commit is contained in:
Supravisor
2024-08-16 06:35:37 +12:00
committed by GitHub
parent 97045bf975
commit cdc4f34e6c

View File

@@ -23,13 +23,13 @@ Add an empty `constructor` method to the `ShoppingCart` class.
You should add a `constructor` method to the `ShoppingCart` class.
```js
assert.match(code, /class\s+ShoppingCart\s*\{\s*constructor\(\s*\)\s*/)
assert.match(code, /class\s+ShoppingCart\s*\{\s*constructor\s*\(\s*\)\s*/)
```
Your `constructor` method should be empty.
```js
assert.match(code, /class\s+ShoppingCart\s*\{\s*constructor\(\s*\)\s*\{\s*\}\s*\}/)
assert.match(code, /class\s+ShoppingCart\s*\{\s*constructor\s*\(\s*\)\s*\{\s*\}\s*\}/)
```
# --seed--