diff options
| author | Shinigami <[email protected]> | 2023-08-01 19:03:31 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-01 17:03:31 +0000 |
| commit | 87eca26016853c1332a214d7700cbed35640e1f6 (patch) | |
| tree | eaa87a144fc5e6e1b7af6ad48c4c76ac90be9506 /test | |
| parent | d6ab48babb1e6ae16cce3c47d2090e8f4cb83d86 (diff) | |
| download | faker-87eca26016853c1332a214d7700cbed35640e1f6.tar.xz faker-87eca26016853c1332a214d7700cbed35640e1f6.zip | |
test: move files to modules (#2279)
Diffstat (limited to 'test')
| -rw-r--r-- | test/__snapshots__/unique.spec.ts.snap | 25 | ||||
| -rw-r--r-- | test/modules/__snapshots__/airline.spec.ts.snap (renamed from test/__snapshots__/airline.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/animal.spec.ts.snap (renamed from test/__snapshots__/animal.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/color.spec.ts.snap (renamed from test/__snapshots__/color.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/commerce.spec.ts.snap (renamed from test/__snapshots__/commerce.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/company.spec.ts.snap (renamed from test/__snapshots__/company.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/database.spec.ts.snap (renamed from test/__snapshots__/database.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/datatype.spec.ts.snap (renamed from test/__snapshots__/datatype.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/date.spec.ts.snap (renamed from test/__snapshots__/date.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/finance.spec.ts.snap (renamed from test/__snapshots__/finance.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/git.spec.ts.snap (renamed from test/__snapshots__/git.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/hacker.spec.ts.snap (renamed from test/__snapshots__/hacker.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/helpers.spec.ts.snap (renamed from test/__snapshots__/helpers.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/image.spec.ts.snap (renamed from test/__snapshots__/image.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/internet.spec.ts.snap (renamed from test/__snapshots__/internet.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/location.spec.ts.snap (renamed from test/__snapshots__/location.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/lorem.spec.ts.snap (renamed from test/__snapshots__/lorem.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/music.spec.ts.snap (renamed from test/__snapshots__/music.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/number.spec.ts.snap (renamed from test/__snapshots__/number.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/person.spec.ts.snap (renamed from test/__snapshots__/person.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/phone.spec.ts.snap (renamed from test/__snapshots__/phone.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/random.spec.ts.snap (renamed from test/__snapshots__/random.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/science.spec.ts.snap (renamed from test/__snapshots__/science.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/string.spec.ts.snap (renamed from test/__snapshots__/string.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/system.spec.ts.snap (renamed from test/__snapshots__/system.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/vehicle.spec.ts.snap (renamed from test/__snapshots__/vehicle.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/__snapshots__/word.spec.ts.snap (renamed from test/__snapshots__/word.spec.ts.snap) | 0 | ||||
| -rw-r--r-- | test/modules/airline.spec.ts (renamed from test/airline.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/animal.spec.ts (renamed from test/animal.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/color.spec.ts (renamed from test/color.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/commerce.spec.ts (renamed from test/commerce.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/company.spec.ts (renamed from test/company.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/database.spec.ts (renamed from test/database.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/datatype.spec.ts (renamed from test/datatype.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/date.spec.ts (renamed from test/date.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/finance.spec.ts (renamed from test/finance.spec.ts) | 12 | ||||
| -rw-r--r-- | test/modules/finance_iban.spec.ts (renamed from test/finance_iban.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/git.spec.ts (renamed from test/git.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/hacker.spec.ts (renamed from test/hacker.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/helpers.spec.ts (renamed from test/helpers.spec.ts) | 10 | ||||
| -rw-r--r-- | test/modules/image.spec.ts (renamed from test/image.spec.ts) | 4 | ||||
| -rw-r--r-- | test/modules/internet.spec.ts (renamed from test/internet.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/location.spec.ts (renamed from test/location.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/lorem.spec.ts (renamed from test/lorem.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/music.spec.ts (renamed from test/music.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/number.spec.ts (renamed from test/number.spec.ts) | 4 | ||||
| -rw-r--r-- | test/modules/person.spec.ts (renamed from test/person.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/phone.spec.ts (renamed from test/phone.spec.ts) | 8 | ||||
| -rw-r--r-- | test/modules/random.spec.ts (renamed from test/random.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/science.spec.ts (renamed from test/science.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/string.spec.ts (renamed from test/string.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/system.spec.ts (renamed from test/system.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/vehicle.spec.ts (renamed from test/vehicle.spec.ts) | 6 | ||||
| -rw-r--r-- | test/modules/word.spec.ts (renamed from test/word.spec.ts) | 8 |
54 files changed, 86 insertions, 111 deletions
diff --git a/test/__snapshots__/unique.spec.ts.snap b/test/__snapshots__/unique.spec.ts.snap deleted file mode 100644 index d6ce5e55..00000000 --- a/test/__snapshots__/unique.spec.ts.snap +++ /dev/null @@ -1,25 +0,0 @@ -// Vitest Snapshot v1 - -exports[`unique > seed: 42 > unique(() => number) 1`] = `37454`; - -exports[`unique > seed: 42 > unique(() => number), args) 1`] = `19`; - -exports[`unique > seed: 42 > unique(customMethod) 1`] = `"Test-188"`; - -exports[`unique > seed: 42 > unique(customMethod, args) 1`] = `"prefix-1-Test-188"`; - -exports[`unique > seed: 1211 > unique(() => number) 1`] = `92852`; - -exports[`unique > seed: 1211 > unique(() => number), args) 1`] = `47`; - -exports[`unique > seed: 1211 > unique(customMethod) 1`] = `"Test-465"`; - -exports[`unique > seed: 1211 > unique(customMethod, args) 1`] = `"prefix-1-Test-465"`; - -exports[`unique > seed: 1337 > unique(() => number) 1`] = `26202`; - -exports[`unique > seed: 1337 > unique(() => number), args) 1`] = `13`; - -exports[`unique > seed: 1337 > unique(customMethod) 1`] = `"Test-132"`; - -exports[`unique > seed: 1337 > unique(customMethod, args) 1`] = `"prefix-1-Test-132"`; diff --git a/test/__snapshots__/airline.spec.ts.snap b/test/modules/__snapshots__/airline.spec.ts.snap index 0615a839..0615a839 100644 --- a/test/__snapshots__/airline.spec.ts.snap +++ b/test/modules/__snapshots__/airline.spec.ts.snap diff --git a/test/__snapshots__/animal.spec.ts.snap b/test/modules/__snapshots__/animal.spec.ts.snap index 7124e5e9..7124e5e9 100644 --- a/test/__snapshots__/animal.spec.ts.snap +++ b/test/modules/__snapshots__/animal.spec.ts.snap diff --git a/test/__snapshots__/color.spec.ts.snap b/test/modules/__snapshots__/color.spec.ts.snap index a39ce0f3..a39ce0f3 100644 --- a/test/__snapshots__/color.spec.ts.snap +++ b/test/modules/__snapshots__/color.spec.ts.snap diff --git a/test/__snapshots__/commerce.spec.ts.snap b/test/modules/__snapshots__/commerce.spec.ts.snap index 1dde6785..1dde6785 100644 --- a/test/__snapshots__/commerce.spec.ts.snap +++ b/test/modules/__snapshots__/commerce.spec.ts.snap diff --git a/test/__snapshots__/company.spec.ts.snap b/test/modules/__snapshots__/company.spec.ts.snap index b65e2bd4..b65e2bd4 100644 --- a/test/__snapshots__/company.spec.ts.snap +++ b/test/modules/__snapshots__/company.spec.ts.snap diff --git a/test/__snapshots__/database.spec.ts.snap b/test/modules/__snapshots__/database.spec.ts.snap index f49fc90e..f49fc90e 100644 --- a/test/__snapshots__/database.spec.ts.snap +++ b/test/modules/__snapshots__/database.spec.ts.snap diff --git a/test/__snapshots__/datatype.spec.ts.snap b/test/modules/__snapshots__/datatype.spec.ts.snap index 41c14158..41c14158 100644 --- a/test/__snapshots__/datatype.spec.ts.snap +++ b/test/modules/__snapshots__/datatype.spec.ts.snap diff --git a/test/__snapshots__/date.spec.ts.snap b/test/modules/__snapshots__/date.spec.ts.snap index 701c8cc7..701c8cc7 100644 --- a/test/__snapshots__/date.spec.ts.snap +++ b/test/modules/__snapshots__/date.spec.ts.snap diff --git a/test/__snapshots__/finance.spec.ts.snap b/test/modules/__snapshots__/finance.spec.ts.snap index 69d73820..69d73820 100644 --- a/test/__snapshots__/finance.spec.ts.snap +++ b/test/modules/__snapshots__/finance.spec.ts.snap diff --git a/test/__snapshots__/git.spec.ts.snap b/test/modules/__snapshots__/git.spec.ts.snap index 9e52bd15..9e52bd15 100644 --- a/test/__snapshots__/git.spec.ts.snap +++ b/test/modules/__snapshots__/git.spec.ts.snap diff --git a/test/__snapshots__/hacker.spec.ts.snap b/test/modules/__snapshots__/hacker.spec.ts.snap index d36739fe..d36739fe 100644 --- a/test/__snapshots__/hacker.spec.ts.snap +++ b/test/modules/__snapshots__/hacker.spec.ts.snap diff --git a/test/__snapshots__/helpers.spec.ts.snap b/test/modules/__snapshots__/helpers.spec.ts.snap index 04af3ac0..04af3ac0 100644 --- a/test/__snapshots__/helpers.spec.ts.snap +++ b/test/modules/__snapshots__/helpers.spec.ts.snap diff --git a/test/__snapshots__/image.spec.ts.snap b/test/modules/__snapshots__/image.spec.ts.snap index b7cb3279..b7cb3279 100644 --- a/test/__snapshots__/image.spec.ts.snap +++ b/test/modules/__snapshots__/image.spec.ts.snap diff --git a/test/__snapshots__/internet.spec.ts.snap b/test/modules/__snapshots__/internet.spec.ts.snap index c8c6d8bb..c8c6d8bb 100644 --- a/test/__snapshots__/internet.spec.ts.snap +++ b/test/modules/__snapshots__/internet.spec.ts.snap diff --git a/test/__snapshots__/location.spec.ts.snap b/test/modules/__snapshots__/location.spec.ts.snap index 58600952..58600952 100644 --- a/test/__snapshots__/location.spec.ts.snap +++ b/test/modules/__snapshots__/location.spec.ts.snap diff --git a/test/__snapshots__/lorem.spec.ts.snap b/test/modules/__snapshots__/lorem.spec.ts.snap index fc372d40..fc372d40 100644 --- a/test/__snapshots__/lorem.spec.ts.snap +++ b/test/modules/__snapshots__/lorem.spec.ts.snap diff --git a/test/__snapshots__/music.spec.ts.snap b/test/modules/__snapshots__/music.spec.ts.snap index 573391e0..573391e0 100644 --- a/test/__snapshots__/music.spec.ts.snap +++ b/test/modules/__snapshots__/music.spec.ts.snap diff --git a/test/__snapshots__/number.spec.ts.snap b/test/modules/__snapshots__/number.spec.ts.snap index 3d10ddb4..3d10ddb4 100644 --- a/test/__snapshots__/number.spec.ts.snap +++ b/test/modules/__snapshots__/number.spec.ts.snap diff --git a/test/__snapshots__/person.spec.ts.snap b/test/modules/__snapshots__/person.spec.ts.snap index 6f3e0963..6f3e0963 100644 --- a/test/__snapshots__/person.spec.ts.snap +++ b/test/modules/__snapshots__/person.spec.ts.snap diff --git a/test/__snapshots__/phone.spec.ts.snap b/test/modules/__snapshots__/phone.spec.ts.snap index a3809065..a3809065 100644 --- a/test/__snapshots__/phone.spec.ts.snap +++ b/test/modules/__snapshots__/phone.spec.ts.snap diff --git a/test/__snapshots__/random.spec.ts.snap b/test/modules/__snapshots__/random.spec.ts.snap index 045cc40f..045cc40f 100644 --- a/test/__snapshots__/random.spec.ts.snap +++ b/test/modules/__snapshots__/random.spec.ts.snap diff --git a/test/__snapshots__/science.spec.ts.snap b/test/modules/__snapshots__/science.spec.ts.snap index bc24e66d..bc24e66d 100644 --- a/test/__snapshots__/science.spec.ts.snap +++ b/test/modules/__snapshots__/science.spec.ts.snap diff --git a/test/__snapshots__/string.spec.ts.snap b/test/modules/__snapshots__/string.spec.ts.snap index cb8487da..cb8487da 100644 --- a/test/__snapshots__/string.spec.ts.snap +++ b/test/modules/__snapshots__/string.spec.ts.snap diff --git a/test/__snapshots__/system.spec.ts.snap b/test/modules/__snapshots__/system.spec.ts.snap index 9957a455..9957a455 100644 --- a/test/__snapshots__/system.spec.ts.snap +++ b/test/modules/__snapshots__/system.spec.ts.snap diff --git a/test/__snapshots__/vehicle.spec.ts.snap b/test/modules/__snapshots__/vehicle.spec.ts.snap index 2affc34e..2affc34e 100644 --- a/test/__snapshots__/vehicle.spec.ts.snap +++ b/test/modules/__snapshots__/vehicle.spec.ts.snap diff --git a/test/__snapshots__/word.spec.ts.snap b/test/modules/__snapshots__/word.spec.ts.snap index 475fd2d6..475fd2d6 100644 --- a/test/__snapshots__/word.spec.ts.snap +++ b/test/modules/__snapshots__/word.spec.ts.snap diff --git a/test/airline.spec.ts b/test/modules/airline.spec.ts index 3f17d1a6..2cbb47c3 100644 --- a/test/airline.spec.ts +++ b/test/modules/airline.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { Aircraft, faker } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { Aircraft, faker } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/animal.spec.ts b/test/modules/animal.spec.ts index 210fc5fb..26344302 100644 --- a/test/animal.spec.ts +++ b/test/modules/animal.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/color.spec.ts b/test/modules/color.spec.ts index 30c81f94..4f24fcc3 100644 --- a/test/color.spec.ts +++ b/test/modules/color.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { CssFunction, CssSpace, faker } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { CssFunction, CssSpace, faker } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/commerce.spec.ts b/test/modules/commerce.spec.ts index 743aa58b..15ad7aee 100644 --- a/test/commerce.spec.ts +++ b/test/modules/commerce.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/company.spec.ts b/test/modules/company.spec.ts index 9811710d..d122238c 100644 --- a/test/company.spec.ts +++ b/test/modules/company.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/database.spec.ts b/test/modules/database.spec.ts index 2d58930d..a94012e6 100644 --- a/test/database.spec.ts +++ b/test/modules/database.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/datatype.spec.ts b/test/modules/datatype.spec.ts index 55e81412..e3e052ef 100644 --- a/test/datatype.spec.ts +++ b/test/modules/datatype.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { faker, FakerError } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker, FakerError } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 25; diff --git a/test/date.spec.ts b/test/modules/date.spec.ts index 2e48e632..e3f7a109 100644 --- a/test/date.spec.ts +++ b/test/modules/date.spec.ts @@ -1,7 +1,7 @@ import { afterEach, describe, expect, it } from 'vitest'; -import { faker, fakerAZ, FakerError } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker, fakerAZ, FakerError } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const converterMap = [ (d: Date) => d, diff --git a/test/finance.spec.ts b/test/modules/finance.spec.ts index 8437e748..c5c38a58 100644 --- a/test/finance.spec.ts +++ b/test/modules/finance.spec.ts @@ -1,11 +1,11 @@ import isValidBtcAddress from 'validator/lib/isBtcAddress'; import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import { FakerError } from '../src/errors/faker-error'; -import ibanLib from '../src/modules/finance/iban'; -import { luhnCheck } from '../src/modules/helpers/luhn-check'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker } from '../../src'; +import { FakerError } from '../../src/errors/faker-error'; +import ibanLib from '../../src/modules/finance/iban'; +import { luhnCheck } from '../../src/modules/helpers/luhn-check'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/finance_iban.spec.ts b/test/modules/finance_iban.spec.ts index c8462cbe..5c32fed3 100644 --- a/test/finance_iban.spec.ts +++ b/test/modules/finance_iban.spec.ts @@ -1,8 +1,8 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import ibanLib from '../src/modules/finance/iban'; -import { times } from './support/times'; +import { faker } from '../../src'; +import ibanLib from '../../src/modules/finance/iban'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 25; diff --git a/test/git.spec.ts b/test/modules/git.spec.ts index 4000e71d..2b721e8b 100644 --- a/test/git.spec.ts +++ b/test/modules/git.spec.ts @@ -1,8 +1,8 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/hacker.spec.ts b/test/modules/hacker.spec.ts index e6bbcb25..62821283 100644 --- a/test/hacker.spec.ts +++ b/test/modules/hacker.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/helpers.spec.ts b/test/modules/helpers.spec.ts index c7003dc8..7b709373 100644 --- a/test/helpers.spec.ts +++ b/test/modules/helpers.spec.ts @@ -1,9 +1,9 @@ import { describe, expect, it } from 'vitest'; -import { faker, FakerError } from '../src'; -import { luhnCheck } from '../src/modules/helpers/luhn-check'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; -import './vitest-extensions'; +import { faker, FakerError } from '../../src'; +import { luhnCheck } from '../../src/modules/helpers/luhn-check'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; +import './../vitest-extensions'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/image.spec.ts b/test/modules/image.spec.ts index 2201e4fd..7cb6aa77 100644 --- a/test/image.spec.ts +++ b/test/modules/image.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import { seededTests } from './support/seededRuns'; +import { faker } from '../../src'; +import { seededTests } from './../support/seededRuns'; describe('image', () => { seededTests(faker, 'image', (t) => { diff --git a/test/internet.spec.ts b/test/modules/internet.spec.ts index 54b92075..8ed65bc0 100644 --- a/test/internet.spec.ts +++ b/test/modules/internet.spec.ts @@ -1,8 +1,8 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; -import { allFakers, faker } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { allFakers, faker } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/location.spec.ts b/test/modules/location.spec.ts index 578b91d4..d9ce9c7f 100644 --- a/test/location.spec.ts +++ b/test/modules/location.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { faker, fakerEN_CA, fakerEN_US, FakerError } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker, fakerEN_CA, fakerEN_US, FakerError } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; function degreesToRadians(degrees: number) { return degrees * (Math.PI / 180.0); diff --git a/test/lorem.spec.ts b/test/modules/lorem.spec.ts index ecb2bc34..08a209c6 100644 --- a/test/lorem.spec.ts +++ b/test/modules/lorem.spec.ts @@ -1,8 +1,8 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/music.spec.ts b/test/modules/music.spec.ts index f2600b4b..6f12734b 100644 --- a/test/music.spec.ts +++ b/test/modules/music.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/number.spec.ts b/test/modules/number.spec.ts index c0bdf609..19bd8f39 100644 --- a/test/number.spec.ts +++ b/test/modules/number.spec.ts @@ -1,7 +1,7 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; -import { faker, FakerError } from '../src'; -import { seededTests } from './support/seededRuns'; +import { faker, FakerError } from '../../src'; +import { seededTests } from './../support/seededRuns'; describe('number', () => { seededTests(faker, 'number', (t) => { diff --git a/test/person.spec.ts b/test/modules/person.spec.ts index 1d4b2ffe..7b32af9d 100644 --- a/test/person.spec.ts +++ b/test/modules/person.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { faker, fakerAZ, fakerMK, fakerUK, Sex } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker, fakerAZ, fakerMK, fakerUK, Sex } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/phone.spec.ts b/test/modules/phone.spec.ts index 884cb178..ec561acf 100644 --- a/test/phone.spec.ts +++ b/test/modules/phone.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import { luhnCheck } from '../src/modules/helpers/luhn-check'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker } from '../../src'; +import { luhnCheck } from '../../src/modules/helpers/luhn-check'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 25; diff --git a/test/random.spec.ts b/test/modules/random.spec.ts index dbdb724d..21200c3a 100644 --- a/test/random.spec.ts +++ b/test/modules/random.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { Faker, faker, FakerError, fakerZH_CN } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { Faker, faker, FakerError, fakerZH_CN } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/science.spec.ts b/test/modules/science.spec.ts index bd32e676..8ca6d9f5 100644 --- a/test/science.spec.ts +++ b/test/modules/science.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/string.spec.ts b/test/modules/string.spec.ts index f9e7b6c7..4b885a3a 100644 --- a/test/string.spec.ts +++ b/test/modules/string.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { faker, FakerError } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker, FakerError } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/system.spec.ts b/test/modules/system.spec.ts index fe67dcae..c75e09f5 100644 --- a/test/system.spec.ts +++ b/test/modules/system.spec.ts @@ -1,8 +1,8 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; -import { faker, fakerSK } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker, fakerSK } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/vehicle.spec.ts b/test/modules/vehicle.spec.ts index 5136978b..f691a1fa 100644 --- a/test/vehicle.spec.ts +++ b/test/modules/vehicle.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker } from '../../src'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/word.spec.ts b/test/modules/word.spec.ts index 58123a09..08fbca4d 100644 --- a/test/word.spec.ts +++ b/test/modules/word.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from 'vitest'; -import { faker } from '../src'; -import { filterWordListByLength } from '../src/modules/word/filterWordListByLength'; -import { seededTests } from './support/seededRuns'; -import { times } from './support/times'; +import { faker } from '../../src'; +import { filterWordListByLength } from '../../src/modules/word/filterWordListByLength'; +import { seededTests } from './../support/seededRuns'; +import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; |
