From 2d93e6f14a5ba976f87b71202bc4e011e38ee823 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sat, 31 Dec 2022 12:22:38 +0100 Subject: chore: turn on padding-line-between-statements (#1691) --- test/all_functional.spec.ts | 1 + test/date.spec.ts | 1 + test/support/seededRuns.ts | 3 +++ 3 files changed, 5 insertions(+) (limited to 'test') 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 = { it(name: string, ...args: Parameters) { expectVariantNotTested(name); @@ -279,6 +281,7 @@ class TestGenerator< for (const method of methods) { this.describe(method, factory); } + return this; }; } -- cgit v1.2.3