aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2025-02-28 08:24:02 +0100
committerGitHub <[email protected]>2025-02-28 08:24:02 +0100
commit41ebbbbe4432b7583f4bd51c5339be0af8ed09c9 (patch)
tree52f42cc575dd521ce586c24778756914557d15db /test
parentdce28d6e46b57043339471b5db5ec8f0e121fdcd (diff)
downloadfaker-41ebbbbe4432b7583f4bd51c5339be0af8ed09c9.tar.xz
faker-41ebbbbe4432b7583f4bd51c5339be0af8ed09c9.zip
docs: improve missing data error (#3406)
Diffstat (limited to 'test')
-rw-r--r--test/internal/locale-proxy.spec.ts2
-rw-r--r--test/modules/location.spec.ts1
2 files changed, 3 insertions, 0 deletions
diff --git a/test/internal/locale-proxy.spec.ts b/test/internal/locale-proxy.spec.ts
index 1b6e060b..133e7084 100644
--- a/test/internal/locale-proxy.spec.ts
+++ b/test/internal/locale-proxy.spec.ts
@@ -97,6 +97,7 @@ describe('LocaleProxy', () => {
expect(() => locale.category.missing).toThrow(
new FakerError(
`The locale data for 'category.missing' are missing in this locale.
+ If this is a custom Faker instance, please make sure all required locales are used e.g. '[de_AT, de, en, base]'.
Please contribute the missing data to the project or use a locale/Faker instance that has these data.
For more information see https://fakerjs.dev/guide/localization.html`
)
@@ -107,6 +108,7 @@ describe('LocaleProxy', () => {
expect(() => locale.airline.missing).toThrow(
new FakerError(
`The locale data for 'airline.missing' are missing in this locale.
+ If this is a custom Faker instance, please make sure all required locales are used e.g. '[de_AT, de, en, base]'.
Please contribute the missing data to the project or use a locale/Faker instance that has these data.
For more information see https://fakerjs.dev/guide/localization.html`
)
diff --git a/test/modules/location.spec.ts b/test/modules/location.spec.ts
index 78b68812..8af00f37 100644
--- a/test/modules/location.spec.ts
+++ b/test/modules/location.spec.ts
@@ -220,6 +220,7 @@ describe('location', () => {
expect(() => faker.location.zipCode({ state: 'XX' })).toThrow(
new FakerError(
`The locale data for 'location.postcode_by_state' are missing in this locale.
+ If this is a custom Faker instance, please make sure all required locales are used e.g. '[de_AT, de, en, base]'.
Please contribute the missing data to the project or use a locale/Faker instance that has these data.
For more information see https://fakerjs.dev/guide/localization.html`
)