aboutsummaryrefslogtreecommitdiff
path: root/test/database.spec.ts
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-02-20 18:32:49 +0100
committerGitHub <[email protected]>2022-02-20 18:32:49 +0100
commitbfa7946f7ef5c025c2af9165191ffced4a7dde9d (patch)
tree5c3e0e619b529be10da0be5b1f83d71437c9436f /test/database.spec.ts
parent2448aab2fca711ef18857e27690f94440b517d84 (diff)
downloadfaker-bfa7946f7ef5c025c2af9165191ffced4a7dde9d.tar.xz
faker-bfa7946f7ef5c025c2af9165191ffced4a7dde9d.zip
test: use toBeTypeOf (#511)
Diffstat (limited to 'test/database.spec.ts')
-rw-r--r--test/database.spec.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/database.spec.ts b/test/database.spec.ts
index 62996fed..9079647f 100644
--- a/test/database.spec.ts
+++ b/test/database.spec.ts
@@ -62,7 +62,7 @@ describe('database', () => {
it('should return a column name from array', () => {
const column = faker.database.column();
expect(column).toBeTruthy();
- expect(typeof column).toBe('string');
+ expect(column).toBeTypeOf('string');
expect(faker.definitions.database.column).toContain(column);
});
});
@@ -71,7 +71,7 @@ describe('database', () => {
it('should return a collation from array', () => {
const collation = faker.database.collation();
expect(collation).toBeTruthy();
- expect(typeof collation).toBe('string');
+ expect(collation).toBeTypeOf('string');
expect(faker.definitions.database.collation).toContain(collation);
});
});
@@ -80,7 +80,7 @@ describe('database', () => {
it('should return an engine from array', () => {
const engine = faker.database.engine();
expect(engine).toBeTruthy();
- expect(typeof engine).toBe('string');
+ expect(engine).toBeTypeOf('string');
expect(faker.definitions.database.engine).toContain(engine);
});
});
@@ -89,7 +89,7 @@ describe('database', () => {
it('should return a column type from array', () => {
const type = faker.database.type();
expect(type).toBeTruthy();
- expect(typeof type).toBe('string');
+ expect(type).toBeTypeOf('string');
expect(faker.definitions.database.type).toContain(type);
});
});