Skip to content

Commit

Permalink
test: add CVE-ID test
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Nov 25, 2024
1 parent 6c82ccd commit 0748578
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,19 +231,15 @@ test('cve id', function (t) {

t.ok(list && list.length > 1, 'got a list')

t.deepEqual(list[list.length - 18], {
sha: 'b23208796d7e3fd08b36f6106aa7f027aa827137',
t.deepEqual(list[list.length - 30], {
sha: 'de55c4c81dfb6cf13e5e2ae24ae88c9be4f5b598',
authors: [
{ name: 'Rich Trott', email: 'rtrott@gmail.com' }
{ name: 'RafaelGSS', email: 'rafael.nunu@hotmail.com' }
],
authorDate: 'Mon Oct 11 19:29:18 2021 -0700',
prUrl: 'https://github.com/rvagg/commit-stream/pull/5',
ghIssue: 5,
ghUser: 'rvagg',
ghProject: 'commit-stream',
author: { name: 'Rich Trott', email: '[email protected]' },
summary: 'chore: update strip-ansi to 6.x',
cveId: ''
authorDate: 'Fri Nov 22 00:19:29 2024 -0300',
author: { name: 'RafaelGSS', email: '[email protected]' },
summary: 'feat: add cveId support',
cveId: 'CVE-2024-12345'
}, 'got correct pr url for green-button merge')
})
})

0 comments on commit 0748578

Please sign in to comment.