Skip to content

Commit 1dcad1a

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 7c516b4 commit 1dcad1a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/utils/licenseUtility.node.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ SPDX-License-Identifier: Apache-2.0
1717
Copyright (c) OWASP Foundation. All Rights Reserved.
1818
*/
1919

20-
import type NATIVE_FS from 'node:fs'
20+
import type { Stats } from 'node:fs'
2121

2222
import { getMimeTypeForLicenseFile } from '../_helpers/mime.node'
2323
import { AttachmentEncoding } from '../enums/attachmentEncoding'
@@ -31,7 +31,7 @@ import { Attachment } from '../models/attachment'
3131
export interface FsUtils<P extends string> {
3232
readdirSync: (path: P ) => P[]
3333
readFileSync: (path: P) => Buffer
34-
statSync: (path: P) => NATIVE_FS.Stats
34+
statSync: (path: P) => Stats
3535
}
3636

3737
export interface PathUtils<P extends string> {

tests/unit/_helpers.mime.spec.js renamed to tests/unit/_helpers.mime.node.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const assert = require('node:assert')
2222
const { suite, test } = require('mocha')
2323

2424
const {
25-
getMimeForLicenseFile
25+
getMimeTypeForLicenseFile
2626
} = require('../../dist.node/_helpers/mime.node.js')
2727

2828
suite('unit: _helpers.mime.getMimeForLicenseFile', () => {
@@ -35,7 +35,7 @@ suite('unit: _helpers.mime.getMimeForLicenseFile', () => {
3535
['LICENCE.MIT', 'text/plain']
3636
]) {
3737
test(fileName, () => {
38-
const value = getMimeForLicenseFile(fileName)
38+
const value = getMimeTypeForLicenseFile(fileName)
3939
assert.strictEqual(value, expected)
4040
})
4141
}

0 commit comments

Comments
 (0)