fix(curriculum): augment test for adding tracks property (#45424)

* Only English

* Consitent quotation marks
This commit is contained in:
Kai Wei Mo
2022-03-17 15:13:16 -04:00
committed by GitHub
parent 54fb32f007
commit ce5b9b8aba

View File

@ -31,13 +31,13 @@ assert(
); );
``` ```
After `updateRecords(recordCollection, 5439, "tracks", "Take a Chance on Me")`, `tracks` should have the string `Take a Chance on Me` as the last element. After `updateRecords(recordCollection, 5439, "tracks", "Take a Chance on Me")`, `tracks` should have the string `Take a Chance on Me` as the last and only element.
```js ```js
assert( assert(
updateRecords(_recordCollection, 5439, 'tracks', 'Take a Chance on Me')[5439][ updateRecords(_recordCollection, 5439, 'tracks', 'Take a Chance on Me') &&
'tracks' _recordCollection[5439]['tracks'].length === 1 &&
].pop() === 'Take a Chance on Me' _recordCollection[5439]['tracks'].pop() === 'Take a Chance on Me'
); );
``` ```