From bfa7946f7ef5c025c2af9165191ffced4a7dde9d Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sun, 20 Feb 2022 18:32:49 +0100 Subject: test: use toBeTypeOf (#511) --- test/database.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/database.spec.ts') 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); }); }); -- cgit v1.2.3