File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ main-class = "src/cli/MyCommand2.es"
184184
185185## Test section
186186
187- Unit-testing settings. (May use ` import { ... } from "zone.testing "; ` )
187+ Unit-testing settings. (May use ` import { ... } from "mocha "; ` )
188188
189189``` toml
190190[test ]
Original file line number Diff line number Diff line change 11# Unit testing
22
3- Use the ` zone.testing ` module to formulate tests under your [ unit-testing source path] [ manifest ] .
3+ Use the ` mocha ` package to formulate tests under your [ unit-testing source path] [ manifest ] .
44
55``` es
6- import { Test } from " zone.testing " ;
6+ import { describe , it } from " mocha " ;
77
88//
9- Test (" sum" , () => {
10- assert .equal (1 + 1 , 2 );
9+ describe (" sum" , () => {
10+ //
11+ describe (" nested" , () => {
12+ //
13+ it (" should yield 2" , () => {
14+ assert .equal (1 + 1 , 2 );
15+ });
16+ });
1117});
1218```
1319
You can’t perform that action at this time.
0 commit comments