as-test 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 2025-05-28 - v0.4.4
4
+
5
+ - deps: update json-as to `v1.1.13`
6
+
3
7
  ## 2025-05-29 - v0.4.3
4
8
 
5
9
  - deps: add json-as to peer dependencies as `*`
@@ -35,7 +35,7 @@ export class Expectation<T> extends Tests {
35
35
  */
36
36
  toBeNull(): void {
37
37
  this.verdict =
38
- isNullable<T>() && changetype<usize>(this._left) ? "ok" : "fail";
38
+ ((isNullable<T>() && changetype<usize>(this._left) == 0) || (isInteger<T>() && nameof<T>() == "usize" && this._left == 0)) ? "ok" : "fail";
39
39
 
40
40
  // @ts-ignore
41
41
  store<T>(changetype<usize>(this), null, offsetof<Expectation<T>>("_right"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "as-test",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Testing framework for AssemblyScript. Compatible with WASI or Bindings ",
5
5
  "types": "assembly/index.ts",
6
6
  "author": "Jairus Tanaka",