Skip to content

Commit a32a38d

Browse files
committed
test: add CVE-ID test
1 parent de55c4c commit a32a38d

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

test.js

+7-11
Original file line numberDiff line numberDiff line change
@@ -231,19 +231,15 @@ test('cve id', function (t) {
231231

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

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

0 commit comments

Comments
 (0)