Skip to content

Commit b856468

Browse files
committed
test(integrity): update import path after src/dlx/integrity → src/integrity move
The file move in 8190de4 renamed the source from dlx/integrity to top-level integrity, but the test's import (resolves to local src/ via bare @socketsecurity/lib) still pointed at the old path. Tests failed to load with 'Missing "./dlx/integrity" specifier'. Updates the two import statements and aligns the describe label. 19/19 tests now pass.
1 parent 19e4694 commit b856468

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/unit/integrity.test.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @fileoverview Unit tests for dlx integrity helpers.
2+
* @fileoverview Unit tests for integrity helpers.
33
*/
44

55
import { describe, expect, it } from 'vitest'
@@ -9,14 +9,14 @@ import {
99
computeHashes,
1010
normalizeHash,
1111
verifyHash,
12-
} from '@socketsecurity/lib/dlx/integrity'
12+
} from '@socketsecurity/lib/integrity'
1313

1414
import type {
1515
ComputedHashes,
1616
NormalizedHash,
17-
} from '@socketsecurity/lib/dlx/integrity'
17+
} from '@socketsecurity/lib/integrity'
1818

19-
describe('dlx/integrity', () => {
19+
describe('integrity', () => {
2020
describe('normalizeHash', () => {
2121
it('sniffs sha512 SRI string as integrity', () => {
2222
const result = normalizeHash('sha512-abc123==')

0 commit comments

Comments
 (0)