Skip to content

Commit 6fe4ebb

Browse files
committed
upd
1 parent 99eddad commit 6fe4ebb

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

src/manifest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]

src/unit-testing.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
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

0 commit comments

Comments
 (0)