aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatt Mayer <[email protected]>2024-03-12 18:01:00 +0700
committerGitHub <[email protected]>2024-03-12 11:01:00 +0000
commite130549e82a3d59af46f2d595ed47fa9a39724a3 (patch)
tree13756af384807ff792a8aa8a4d2c62dda056e613 /test
parentaade09bf6a10fb22f4ebb163931cf1e98ba9ea28 (diff)
downloadfaker-e130549e82a3d59af46f2d595ed47fa9a39724a3.tar.xz
faker-e130549e82a3d59af46f2d595ed47fa9a39724a3.zip
feat(phone)!: add new style parameter (#2578)
Diffstat (limited to 'test')
-rw-r--r--test/modules/__snapshots__/phone.spec.ts.snap18
-rw-r--r--test/modules/phone.spec.ts5
2 files changed, 22 insertions, 1 deletions
diff --git a/test/modules/__snapshots__/phone.spec.ts.snap b/test/modules/__snapshots__/phone.spec.ts.snap
index 20928c04..cd9778c3 100644
--- a/test/modules/__snapshots__/phone.spec.ts.snap
+++ b/test/modules/__snapshots__/phone.spec.ts.snap
@@ -4,10 +4,28 @@ exports[`phone > 42 > imei 1`] = `"39-751108-670982-8"`;
exports[`phone > 42 > number > noArgs 1`] = `"(975) 310-8670 x982"`;
+exports[`phone > 42 > number > with human style 1`] = `"(975) 310-8670 x982"`;
+
+exports[`phone > 42 > number > with international style 1`] = `"+14976110867"`;
+
+exports[`phone > 42 > number > with national style 1`] = `"(497) 611-0867"`;
+
exports[`phone > 1211 > imei 1`] = `"98-296673-687684-2"`;
exports[`phone > 1211 > number > noArgs 1`] = `"1-929-767-3687 x68488"`;
+exports[`phone > 1211 > number > with human style 1`] = `"1-929-767-3687 x68488"`;
+
+exports[`phone > 1211 > number > with international style 1`] = `"+19829667368"`;
+
+exports[`phone > 1211 > number > with national style 1`] = `"(982) 966-7368"`;
+
exports[`phone > 1337 > imei 1`] = `"21-243529-713619-6"`;
exports[`phone > 1337 > number > noArgs 1`] = `"324-452-9713 x619"`;
+
+exports[`phone > 1337 > number > with human style 1`] = `"324-452-9713 x619"`;
+
+exports[`phone > 1337 > number > with international style 1`] = `"+14125352971"`;
+
+exports[`phone > 1337 > number > with national style 1`] = `"(412) 535-2971"`;
diff --git a/test/modules/phone.spec.ts b/test/modules/phone.spec.ts
index 4e1a76a3..131129ac 100644
--- a/test/modules/phone.spec.ts
+++ b/test/modules/phone.spec.ts
@@ -11,7 +11,10 @@ describe('phone', () => {
t.it('imei');
t.describe('number', (t) => {
- t.it('noArgs');
+ t.it('noArgs')
+ .it('with human style', { style: 'human' })
+ .it('with national style', { style: 'national' })
+ .it('with international style', { style: 'international' });
});
});