Skip to content

Commit

Permalink
Merge pull request #109 from yashkohli88/yk/update-fixtures-scancode32
Browse files Browse the repository at this point in the history
Update Integration Test Suite Fixtures for scancode v32.1.0 Improvements and Regression Differences
  • Loading branch information
qtomlinson authored Oct 30, 2024
2 parents d758867 + f2fe409 commit d663dc1
Show file tree
Hide file tree
Showing 14 changed files with 9,767 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const fs = require('fs')
findDefinition(coordinates),
getDefinition(devApiBaseUrl, coordinates)
])
deepStrictEqualExpectedEntries(foundDef, omit(expectedDef, ['files']))
deepStrictEqualExpectedEntries(foundDef, omit(expectedDef, ['files', '_id']))
})
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ function loadFixtures() {
.filter(f => f.endsWith('.json'))
.map(jsonFile => {
const notice = JSON.parse(fs.readFileSync(`${location}/${jsonFile}`))
const coordinatesString = jsonFile.replaceAll('-', '/').replaceAll('///', '/-/').replace('.json', '')
const coordinatesString = jsonFile
.replaceAll('-', '/')
.replaceAll('///', '/-/')
.replaceAll('//', '-')
.replace('.json', '')
return [coordinatesString, notice]
})
}
Loading

0 comments on commit d663dc1

Please sign in to comment.