Skip to content

Commit

Permalink
Corrected animal.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
suyashgulati committed Oct 28, 2024
1 parent 5644bca commit 8dc5975
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/modules/animal.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ describe('animal', () => {
'rabbit',
'rodent',
'snake',
'type'
'type',
'petName'
);
});

Expand Down Expand Up @@ -133,6 +134,13 @@ describe('animal', () => {
expect(faker.definitions.animal.type).toContain(actual);
});
});

describe('petName()', () => {
it('should return random value from type array', () => {
const actual = faker.animal.petName();
expect(faker.definitions.animal.pet_name).toContain(actual);
});
});
}
);
});

0 comments on commit 8dc5975

Please sign in to comment.