diff options
| author | Shinigami <[email protected]> | 2022-10-15 07:49:26 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-14 23:49:26 +0000 |
| commit | 5aa747f7c0e6f4f67044d71139d2f2cf20256a32 (patch) | |
| tree | b27fe464550cf5786875bfcb86496b4648ebcd0e /test | |
| parent | a7cd422c6cbfe10f110e1fc53c88559198a97f08 (diff) | |
| download | faker-5aa747f7c0e6f4f67044d71139d2f2cf20256a32.tar.xz faker-5aa747f7c0e6f4f67044d71139d2f2cf20256a32.zip | |
refactor!: make mersenne internal (#1444)
Diffstat (limited to 'test')
| -rw-r--r-- | test/all_functional.spec.ts | 2 | ||||
| -rw-r--r-- | test/mersenne.spec.ts | 2 | ||||
| -rw-r--r-- | test/scripts/apidoc/examplesAndDeprecations.spec.ts | 16 |
3 files changed, 9 insertions, 11 deletions
diff --git a/test/all_functional.spec.ts b/test/all_functional.spec.ts index f857b84c..5ae065be 100644 --- a/test/all_functional.spec.ts +++ b/test/all_functional.spec.ts @@ -8,7 +8,7 @@ const IGNORED_MODULES = [ 'definitions', 'fake', 'helpers', - 'mersenne', + '_mersenne', ]; function isTestableModule(mod: string) { diff --git a/test/mersenne.spec.ts b/test/mersenne.spec.ts index 62b65a69..6b0a3125 100644 --- a/test/mersenne.spec.ts +++ b/test/mersenne.spec.ts @@ -1,6 +1,6 @@ import { beforeAll, beforeEach, describe, expect, it } from 'vitest'; import { FakerError } from '../src/errors/faker-error'; -import { MersenneModule } from '../src/modules/mersenne'; +import { MersenneModule } from '../src/internal/mersenne/mersenne'; import { seededRuns } from './support/seededRuns'; const minMaxTestCases = [ diff --git a/test/scripts/apidoc/examplesAndDeprecations.spec.ts b/test/scripts/apidoc/examplesAndDeprecations.spec.ts index 37d61399..772307a9 100644 --- a/test/scripts/apidoc/examplesAndDeprecations.spec.ts +++ b/test/scripts/apidoc/examplesAndDeprecations.spec.ts @@ -32,15 +32,13 @@ describe('examples and deprecations', () => { const modules: Record<string, DeclarationReflection[]> = selectApiModules( project - ) - .filter((module) => module.name !== 'MersenneModule') - .reduce( - (a, v) => ({ - ...a, - [v.name]: v.getChildrenByKind(ReflectionKind.Method), - }), - {} - ); + ).reduce( + (a, v) => ({ + ...a, + [v.name]: v.getChildrenByKind(ReflectionKind.Method), + }), + {} + ); const consoleSpies: Array<SpyInstance> = Object.keys(console) .filter((key) => typeof console[key] === 'function') |
