Skip to content

Commit

Permalink
test: check if random value exists in faker.definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrekn committed Feb 1, 2022
1 parent ba87fb7 commit 942061f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/music.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ describe('music', () => {
it('should return a genre', () => {
const genre = faker.music.genre();

expect(typeof genre).toBe('string');
expect(genre).toBeTruthy();
expect(typeof genre).toBe('string');
expect(faker.definitions.music.genre).toContain(genre);
});
});
}
Expand Down

0 comments on commit 942061f

Please sign in to comment.