@@ -270,7 +270,8 @@ describe('TierNFT', function () {
270
270
<ContentCallout emoji = " 💡" size = " md" variant = " info" >
271
271
Before we walk through, let's make sure everything is working correctly. Run
272
272
the tests using ` npm test ` and you should see these two initial tests pass.
273
- <strong >This is an important milestone! You created your first tests and they now pass.<strong >
273
+ ** This is an important milestone! You created your first tests and they now
274
+ pass.**
274
275
</ContentCallout >
275
276
276
277
Now let's walk through the test code we've pasted in and explain what it does.
@@ -393,12 +394,38 @@ failure looks like:
393
394
394
395
### Let's add tests for mint()
395
396
396
- Here are tests we'll be adding:
397
+ Now is time to add tests for our ` mint() ` method. We'll group these new tests
398
+ into a new ` describe ` section.
399
+
400
+ Where exactly do we add this ` describe ` block?
401
+
402
+ Currently the end of our ` tier-nft.test.js ` looks like this, with just one
403
+ additional comment line I added that says
404
+ ` // this is where existing describe section ends ` :
405
+
406
+ ``` javascript
407
+ describe (' constructor' , async () => {
408
+ it (' set proper collection name' , async function () {
409
+ const name = await contract .name ()
410
+ expect (name).to .equal (' TierNFT' )
411
+ })
412
+
413
+ it (' set proper collection symbol' , async function () {
414
+ const symbol = await contract .symbol ()
415
+ expect (symbol).to .equal (' Tier' )
416
+ })
417
+ })
418
+ // this is where existing describe section ends
419
+ })
420
+ ```
421
+
422
+ Our new ` describe ` section show below will replace that line that says
423
+ ` // this is where existing describe section ends ` .
397
424
398
425
<ContentCallout emoji = " 💡" size = " md" variant = " info" >
399
- In the next sections we'll be continuing to add groups of tests in new ` describe ` sections.
400
- Where do these go in the file? You have an existing section that starts with ` describe('constructor', async () => { ` .
401
- Ensure you paste the future ` describe ` sections immediately after where that previous section ends .
426
+ Make sure you keep that last line ` }) ` which is the very end of the block of
427
+ code that holds ** all ** of the ` describe ` blocks you're adding in this whole
428
+ lesson .
402
429
</ContentCallout >
403
430
404
431
``` javascript
0 commit comments