feat: allow for dynamic hints (#44279)

This commit is contained in:
Oliver Eyton-Williams
2021-11-25 16:10:01 +01:00
committed by GitHub
parent 63f6d9d3f2
commit 260f945de8
3 changed files with 18 additions and 5 deletions

View File

@ -64,10 +64,13 @@ Tests to run against user code, in pairs of markdown text and code block test co
Code for test one
```
More instructions in markdown syntax
If you want dynamic output based on the user's code, --fcc-expected-- and --fcc-actual-- will be replaced with the expected and actual values of the test's assertion:
```js
More code
assert.equal(
'this will replace --fcc-actual--',
'this will replace --fcc-expected--'
);
```
# --seed--