diff --git a/test/system.spec.ts b/test/system.spec.ts index a603afea6f7..a6ef61a0f5e 100644 --- a/test/system.spec.ts +++ b/test/system.spec.ts @@ -198,10 +198,8 @@ describe('system', () => { it('should return file ext', () => { const fileExt = faker.system.fileExt(); - expect( - fileExt.length, - 'generated fileExt should start with ."' - ).toBeGreaterThan(1); + expect(fileExt).toBeTypeOf('string'); + expect(fileExt).not.toBe(''); }); it('should return file ext based on mimeType', () => {