diff options
| author | Bobby <[email protected]> | 2026-04-22 07:39:20 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-04-22 07:39:20 +0530 |
| commit | 22912c4af19b9055ed95779c4d16020fe3a449eb (patch) | |
| tree | 9d2391df4cf27eb95b198685fbb33df2a1c42991 /tests | |
| parent | 9f807f7e2d2d3711e2ca90cb3984234eef832ad4 (diff) | |
| download | hollowdark-22912c4af19b9055ed95779c4d16020fe3a449eb.tar.xz hollowdark-22912c4af19b9055ed95779c4d16020fe3a449eb.zip | |
Drop all barrel index.ts files; imports target leaf files directly
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/determinism/rng.test.ts | 3 | ||||
| -rw-r--r-- | tests/unit/persistence/schema.test.ts | 2 | ||||
| -rw-r--r-- | tests/unit/utils/assert.test.ts | 4 | ||||
| -rw-r--r-- | tests/unit/utils/equal.test.ts | 2 | ||||
| -rw-r--r-- | tests/unit/utils/result.test.ts | 16 |
5 files changed, 12 insertions, 15 deletions
diff --git a/tests/determinism/rng.test.ts b/tests/determinism/rng.test.ts index 91e720b..57a1e10 100644 --- a/tests/determinism/rng.test.ts +++ b/tests/determinism/rng.test.ts @@ -1,5 +1,6 @@ import { describe, expect, test } from 'vitest' -import { createRNG, deriveSeed, hashString } from '@hollowdark/rng' +import { deriveSeed, hashString } from '@hollowdark/rng/derive' +import { createRNG } from '@hollowdark/rng/seeded' describe('hashString', () => { test('is deterministic', () => { diff --git a/tests/unit/persistence/schema.test.ts b/tests/unit/persistence/schema.test.ts index a02802b..51a22ad 100644 --- a/tests/unit/persistence/schema.test.ts +++ b/tests/unit/persistence/schema.test.ts @@ -7,7 +7,7 @@ import { SCHEMA_VERSION, USER_DATA_DB_NAME, USER_DATA_SCHEMA_V1 -} from '@hollowdark/persistence' +} from '@hollowdark/persistence/schema' /** * The Dexie schema is a versioned contract with on-device storage. Any diff --git a/tests/unit/utils/assert.test.ts b/tests/unit/utils/assert.test.ts index d0dbae6..ab660dc 100644 --- a/tests/unit/utils/assert.test.ts +++ b/tests/unit/utils/assert.test.ts @@ -1,5 +1,7 @@ import { describe, expect, test } from 'vitest' -import { assert, assertDefined, assertNever } from '@hollowdark/utils/assert' +import { assert } from '@hollowdark/utils/assert/assert' +import { assertDefined } from '@hollowdark/utils/assert/assert-defined' +import { assertNever } from '@hollowdark/utils/assert/assert-never' describe('assert', () => { test('passes on truthy condition', () => { diff --git a/tests/unit/utils/equal.test.ts b/tests/unit/utils/equal.test.ts index 760262e..c1ea228 100644 --- a/tests/unit/utils/equal.test.ts +++ b/tests/unit/utils/equal.test.ts @@ -1,5 +1,5 @@ import { describe, expect, test } from 'vitest' -import { deepEqual } from '@hollowdark/utils/equal' +import { deepEqual } from '@hollowdark/utils/equal/deep' describe('deepEqual — primitives', () => { test('identical primitives', () => { diff --git a/tests/unit/utils/result.test.ts b/tests/unit/utils/result.test.ts index abfcac9..bdd4923 100644 --- a/tests/unit/utils/result.test.ts +++ b/tests/unit/utils/result.test.ts @@ -1,15 +1,9 @@ import { describe, expect, test } from 'vitest' -import { - err, - isErr, - isOk, - mapErr, - mapResult, - ok, - unwrap, - unwrapOr, - type Result -} from '@hollowdark/utils/result' +import { err, ok } from '@hollowdark/utils/result/constructors' +import { mapErr, mapResult } from '@hollowdark/utils/result/map' +import { isErr, isOk } from '@hollowdark/utils/result/predicates' +import type { Result } from '@hollowdark/utils/result/types' +import { unwrap, unwrapOr } from '@hollowdark/utils/result/unwrap' describe('Result constructors and predicates', () => { test('ok wraps a value', () => { |
