Skip to content

Commit 99eddad

Browse files
committed
upd
1 parent 212e1b2 commit 99eddad

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

src/SUMMARY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
- [Manifest format](./manifest.md)
55
- [Build script](./build-script.md)
66
- [Environment variables](./environment-variables.md)
7-
- [Icons and logotypes](./icon-logo.md)
7+
- [Icons and logotypes](./icon-logo.md)
8+
- [Unit testing](./unit-testing.md)

src/environment-variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
These environment variables are available for use with `import.meta.env` expressions within ZoneGFX packages, their build scripts and unit-testing scripts.
1010

11-
```ts
11+
```es
1212
import.meta.env.ZONE_MANIFEST_DIR
1313
```
1414

@@ -31,6 +31,6 @@ FOO=bar
3131

3232
You can then refer to that in EScript with expressions like:
3333

34-
```ts
34+
```es
3535
import.meta.env.FOO
3636
```

src/unit-testing.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Unit testing
2+
3+
Use the `zone.testing` module to formulate tests under your [unit-testing source path][manifest].
4+
5+
```es
6+
import { Test } from "zone.testing";
7+
8+
//
9+
Test("sum", () => {
10+
assert.equal(1 + 1, 2);
11+
});
12+
```
13+
14+
[manifest]: ./manifest.md#test-section

0 commit comments

Comments
 (0)