Skip to content

Commit 0dfde52

Browse files
committed
test: replace deprecated faker methods
- https://github.com/faker-js/faker/releases/tag/v8.0.0-alpha.0 Signed-off-by: Lexus Drumgold <[email protected]>
1 parent b8f27f5 commit 0dfde52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/__tests__/determine-specific-type.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import testSubject from '../determine-specific-type'
99
describe('unit:utils/determineSpecificType', () => {
1010
it('should detect bigint', () => {
1111
// Arrange
12-
const value: bigint = faker.datatype.bigInt(13)
12+
const value: bigint = faker.number.bigInt(13)
1313
const expected: string = `type bigint (${inspect(value, {
1414
colors: false
1515
})})`
@@ -51,7 +51,7 @@ describe('unit:utils/determineSpecificType', () => {
5151

5252
it('should detect number', () => {
5353
// Arrange
54-
const value: unknown = faker.datatype.number(13)
54+
const value: unknown = faker.number.int(13)
5555
const expected: string = `type number (${value})`
5656

5757
// Act + Expect
@@ -60,7 +60,7 @@ describe('unit:utils/determineSpecificType', () => {
6060

6161
it('should detect string', () => {
6262
// Arrange
63-
const value: unknown = faker.datatype.string(30)
63+
const value: unknown = faker.string.sample(30)
6464
const inspected: string = inspect(value, { colors: false })
6565
const expected: string = `type string (${inspected.slice(0, 25)}...)`
6666

0 commit comments

Comments
 (0)