Skip to content

Commit 7d793ef

Browse files
committed
tests
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent fd30cce commit 7d793ef

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

tests/integration/Utils.LicenseUtility.LicenseEvidenceGatherer.node.test.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,12 @@ suite('integration: Utils.LicenseUtility.LicenseEvidenceGatherer', () => {
6060
})
6161

6262
test('ignore LICENSE folder', () => {
63-
const { fs } = memfs({ LICENSE: {
63+
const { fs } = memfs({
64+
LICENSE: {
6465
'MIT.txt': 'MIT License text here...',
6566
'GPL-3.0-or-later.txt': 'GPL-3.0-or-later License text here...'
66-
} })
67+
}
68+
})
6769
const leg = new LicenseEvidenceGatherer({ fs })
6870
const found = Array.from(
6971
leg.getFileAttachments('/'))
@@ -72,10 +74,12 @@ suite('integration: Utils.LicenseUtility.LicenseEvidenceGatherer', () => {
7274

7375
test('ignore LICENSES folder', () => {
7476
// see https://reuse-standard.org/
75-
const { fs } = memfs({ LICENSES: {
77+
const { fs } = memfs({
78+
LICENSES: {
7679
'MIT.txt': 'MIT License text here...',
7780
'GPL-3.0-or-later.txt': 'GPL-3.0-or-later License text here...'
78-
} })
81+
}
82+
})
7983
const leg = new LicenseEvidenceGatherer({ fs })
8084
const found = Array.from(
8185
leg.getFileAttachments('/'))
@@ -84,7 +88,7 @@ suite('integration: Utils.LicenseUtility.LicenseEvidenceGatherer', () => {
8488

8589
test('reports unreadable files', () => {
8690
// see https://reuse-standard.org/
87-
const { fs } = memfs({ '/LICENSE': 'license text here...'})
91+
const { fs } = memfs({ '/LICENSE': 'license text here...' })
8892
const expectedError = new Error(
8993
`skipped license file ${sep}LICENSE`,
9094
{ cause: new Error('Custom read error: Access denied!') })

0 commit comments

Comments
 (0)