as-test 0.0.1 → 0.0.2

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/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  | _ | __|___|_ _| __| __|_ _|
5
5
  | |__ |___| | | | __|__ | | |
6
6
  |__|__|_____| |_| |_____|_____| |_|
7
- v0.0.1
7
+ v0.0.2
8
8
  </pre>
9
9
  </h5>
10
10
 
package/assembly/index.ts CHANGED
@@ -81,8 +81,8 @@ export function run(): void {
81
81
  }
82
82
  const ms = performance.now() - start;
83
83
  console.log(rainbow.dimMk("-----------------------------------------\n"));
84
- console.log(rainbow.boldMk("Test Suites: ") + rainbow.boldMk(rainbow.red(failed.toString() + " failed")) + ", " + suites.toString() + " total");
85
- console.log(rainbow.boldMk("Tests: ") + rainbow.boldMk(rainbow.red(failed_tests.toString() + " failed")) + ", " + tests.toString() + " total");
84
+ console.log(rainbow.boldMk("Test Suites: ") + (failed ? rainbow.boldMk(rainbow.red(failed.toString() + " failed")) : rainbow.boldMk(rainbow.green(failed.toString() + " failed"))) + ", " + suites.toString() + " total");
85
+ console.log(rainbow.boldMk("Tests: ") + (failed_tests ? rainbow.boldMk(rainbow.red(failed_tests.toString() + " failed")) : rainbow.boldMk(rainbow.green(failed_tests.toString() + " failed"))) + ", " + tests.toString() + " total");
86
86
  console.log(rainbow.boldMk("Snapshots: ") + "0 total");
87
87
  console.log(rainbow.boldMk("Time: ") + formatTime(ms))
88
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "as-test",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Testing framework for AssemblyScript. Compatible with WASI or Bindings ",
5
5
  "types": "assembly/index.ts",
6
6
  "author": "Jairus Tanaka",