diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/all_functional.spec.ts | 1 | ||||
| -rw-r--r-- | test/date.spec.ts | 1 | ||||
| -rw-r--r-- | test/support/seededRuns.ts | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/test/all_functional.spec.ts b/test/all_functional.spec.ts index 0d630d47..abc34d82 100644 --- a/test/all_functional.spec.ts +++ b/test/all_functional.spec.ts @@ -63,6 +63,7 @@ function modulesList(): { [module: string]: string[] } { } else { console.log(`Skipping ${mod} - No testable methods`); } + return result; }, {}); diff --git a/test/date.spec.ts b/test/date.spec.ts index 75f203cc..d8e617d6 100644 --- a/test/date.spec.ts +++ b/test/date.spec.ts @@ -346,6 +346,7 @@ describe('date', () => { for (let i = 1; i < dates.length; i++) { expect(dates[i]).greaterThan(dates[i - 1]); } + expect(dates[dates.length - 1]).lessThan(to); } ); diff --git a/test/support/seededRuns.ts b/test/support/seededRuns.ts index aa6d5a9b..2c1cbab7 100644 --- a/test/support/seededRuns.ts +++ b/test/support/seededRuns.ts @@ -219,6 +219,7 @@ class TestGenerator< for (const method of methods) { this.it(method); } + return this; } @@ -244,6 +245,7 @@ class TestGenerator< ).toBeFalsy(); variantNames.add(name); }; + const tester: MethodTester<Module[MethodName]> = { it(name: string, ...args: Parameters<Module[MethodName]>) { expectVariantNotTested(name); @@ -279,6 +281,7 @@ class TestGenerator< for (const method of methods) { this.describe(method, factory); } + return this; }; } |
