aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-12-31 12:22:38 +0100
committerGitHub <[email protected]>2022-12-31 12:22:38 +0100
commit2d93e6f14a5ba976f87b71202bc4e011e38ee823 (patch)
tree09c569ac0aa920ba090667a938f67416134dca26 /test
parente296ff2d4f6f1aa56fe7c80722257bd0b316b30a (diff)
downloadfaker-2d93e6f14a5ba976f87b71202bc4e011e38ee823.tar.xz
faker-2d93e6f14a5ba976f87b71202bc4e011e38ee823.zip
chore: turn on padding-line-between-statements (#1691)
Diffstat (limited to 'test')
-rw-r--r--test/all_functional.spec.ts1
-rw-r--r--test/date.spec.ts1
-rw-r--r--test/support/seededRuns.ts3
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;
};
}