diff options
| author | ST-DDT <[email protected]> | 2024-09-20 08:16:44 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-09-20 08:16:44 +0200 |
| commit | dfbf6c4fb755ae57f1c4b9ddc79898b192006188 (patch) | |
| tree | 111570de280a76350bdd70877aac6dc7bf1a6306 /test | |
| parent | f27f9c5cb8173e577fa61c4e1766856fbea3fcf1 (diff) | |
| download | faker-dfbf6c4fb755ae57f1c4b9ddc79898b192006188.tar.xz faker-dfbf6c4fb755ae57f1c4b9ddc79898b192006188.zip | |
refactor(image): deprecate avatarLegacy (#3109)
Diffstat (limited to 'test')
| -rw-r--r-- | test/modules/__snapshots__/image.spec.ts.snap | 6 | ||||
| -rw-r--r-- | test/modules/image.spec.ts | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/test/modules/__snapshots__/image.spec.ts.snap b/test/modules/__snapshots__/image.spec.ts.snap index 887bb84a..dac7d078 100644 --- a/test/modules/__snapshots__/image.spec.ts.snap +++ b/test/modules/__snapshots__/image.spec.ts.snap @@ -1,6 +1,6 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`image > 42 > avatar 1`] = `"https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/1188.jpg"`; +exports[`image > 42 > avatar 1`] = `"https://avatars.githubusercontent.com/u/37454012"`; exports[`image > 42 > avatarGitHub 1`] = `"https://avatars.githubusercontent.com/u/37454012"`; @@ -76,7 +76,7 @@ exports[`image > 42 > urlPlaceholder > with width 1`] = `"https://via.placeholde exports[`image > 42 > urlPlaceholder > with width and height 1`] = `"https://via.placeholder.com/128x128/8ead33/1ddf0f.webp?text=benevolentia%20attonbitus%20auctus"`; -exports[`image > 1211 > avatar 1`] = `"https://avatars.githubusercontent.com/u/89347165"`; +exports[`image > 1211 > avatar 1`] = `"https://avatars.githubusercontent.com/u/92852016"`; exports[`image > 1211 > avatarGitHub 1`] = `"https://avatars.githubusercontent.com/u/92852016"`; @@ -152,7 +152,7 @@ exports[`image > 1211 > urlPlaceholder > with width 1`] = `"https://via.placehol exports[`image > 1211 > urlPlaceholder > with width and height 1`] = `"https://via.placeholder.com/128x128/ed4fef/a7fbae.webp?text=dapifer%20usque%20unde"`; -exports[`image > 1337 > avatar 1`] = `"https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/198.jpg"`; +exports[`image > 1337 > avatar 1`] = `"https://avatars.githubusercontent.com/u/26202467"`; exports[`image > 1337 > avatarGitHub 1`] = `"https://avatars.githubusercontent.com/u/26202467"`; diff --git a/test/modules/image.spec.ts b/test/modules/image.spec.ts index d2439985..8624a965 100644 --- a/test/modules/image.spec.ts +++ b/test/modules/image.spec.ts @@ -114,6 +114,7 @@ describe('image', () => { describe('avatarLegacy', () => { it('should return a random avatar url from cloudflare-ipfs', () => { + // eslint-disable-next-line @typescript-eslint/no-deprecated const avatarUrl = faker.image.avatarLegacy(); expect(avatarUrl).toBeTypeOf('string'); |
