diff options
| author | DivisionByZero <[email protected]> | 2023-02-04 22:13:20 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-04 21:13:20 +0000 |
| commit | 1b9ca0192095b69022b0a4ddc0d73db1e2c3fe17 (patch) | |
| tree | db55989ecbb9ca85dd14eceb1402a4cd300c5e20 /test | |
| parent | 667599d8fb59c31166b897799f30788edc5f54d7 (diff) | |
| download | faker-1b9ca0192095b69022b0a4ddc0d73db1e2c3fe17.tar.xz faker-1b9ca0192095b69022b0a4ddc0d73db1e2c3fe17.zip | |
refactor(datatype): standardize arguments (#1804)
Diffstat (limited to 'test')
| -rw-r--r-- | test/__snapshots__/datatype.spec.ts.snap | 12 | ||||
| -rw-r--r-- | test/datatype.spec.ts | 4 |
2 files changed, 12 insertions, 4 deletions
diff --git a/test/__snapshots__/datatype.spec.ts.snap b/test/__snapshots__/datatype.spec.ts.snap index eece8554..8820e6f6 100644 --- a/test/__snapshots__/datatype.spec.ts.snap +++ b/test/__snapshots__/datatype.spec.ts.snap @@ -117,7 +117,9 @@ exports[`datatype > 42 > number > with min, max and precision 1`] = `-0.43`; exports[`datatype > 42 > string > noArgs 1`] = `"Cky2eiXX/J"`; -exports[`datatype > 42 > string > with length 1`] = `"Cky2eiXX/J/*&[email protected]]\\"&{dnx4!1}2Z=YQ!I#<QYF"`; +exports[`datatype > 42 > string > with length option 1`] = `"Cky2eiXX/J/*&[email protected]]\\"&"`; + +exports[`datatype > 42 > string > with number 1`] = `"Cky2eiXX/J/*&[email protected]]\\"&{dnx4!1}2Z=YQ!I#<QYF"`; exports[`datatype > 42 > uuid 1`] = `"5cf2bc99-2721-407d-992b-a00fbdf302f2"`; @@ -247,7 +249,9 @@ exports[`datatype > 1211 > number > with min, max and precision 1`] = `61.07`; exports[`datatype > 1211 > string > noArgs 1`] = `"wKti5-}$_/"`; -exports[`datatype > 1211 > string > with length 1`] = `"wKti5-}$_/\`4hHA0afl\\"h^]dnwI<q|p|5KWu3/CZ|J"`; +exports[`datatype > 1211 > string > with length option 1`] = `"wKti5-}$_/\`4hHA0afl\\"h^"`; + +exports[`datatype > 1211 > string > with number 1`] = `"wKti5-}$_/\`4hHA0afl\\"h^]dnwI<q|p|5KWu3/CZ|J"`; exports[`datatype > 1211 > uuid 1`] = `"e7ec32f0-a2a3-4c65-abbd-0caabde64dfd"`; @@ -375,7 +379,9 @@ exports[`datatype > 1337 > number > with min, max and precision 1`] = `-12.92`; exports[`datatype > 1337 > string > noArgs 1`] = `"9U/4:SK$>6"`; -exports[`datatype > 1337 > string > with length 1`] = `"9U/4:SK$>6QX9@{:e=+kD)[B,e|/Jqjjj!BLGDWQgC"`; +exports[`datatype > 1337 > string > with length option 1`] = `"9U/4:SK$>6QX9@{:e=+kD)"`; + +exports[`datatype > 1337 > string > with number 1`] = `"9U/4:SK$>6QX9@{:e=+kD)[B,e|/Jqjjj!BLGDWQgC"`; exports[`datatype > 1337 > uuid 1`] = `"48234870-5389-445f-8b41-c61a52bf27dc"`; diff --git a/test/datatype.spec.ts b/test/datatype.spec.ts index 9a8cb1bb..2c09ea05 100644 --- a/test/datatype.spec.ts +++ b/test/datatype.spec.ts @@ -51,7 +51,9 @@ describe('datatype', () => { }); t.describe('string', (t) => { - t.it('noArgs').it('with length', 42); + t.it('noArgs') + .it('with number', 42) + .it('with length option', { length: 22 }); }); t.itRepeated('uuid', 5); |
