mirror of
https://github.com/actions/toolkit
synced 2025-05-09 00:22:56 +00:00
Re-enable the audit tools step and update dependencies (#815)
* update package versions * run audit * fix eslint config * linter updates * re-enable audit * update timeouts test * pass done into callback * fix format
This commit is contained in:
parent
8dc2d6eb6a
commit
0d74e9080a
19 changed files with 10148 additions and 12836 deletions
|
@ -87,7 +87,7 @@ test('download progress tracked correctly', () => {
|
|||
expect(progress.isDone()).toBe(true)
|
||||
})
|
||||
|
||||
test('display timer works correctly', () => {
|
||||
test('display timer works correctly', done => {
|
||||
const progress = new DownloadProgress(1000)
|
||||
|
||||
const infoMock = jest.spyOn(core, 'info')
|
||||
|
@ -103,6 +103,7 @@ test('display timer works correctly', () => {
|
|||
const test2 = (): void => {
|
||||
check()
|
||||
expect(progress.timeoutHandle).toBeUndefined()
|
||||
done()
|
||||
}
|
||||
|
||||
// Validate the progress is displayed, stop the timer, and call test2.
|
||||
|
@ -112,7 +113,7 @@ test('display timer works correctly', () => {
|
|||
progress.stopDisplayTimer()
|
||||
progress.setReceivedBytes(1000)
|
||||
|
||||
setTimeout(() => test2(), 100)
|
||||
setTimeout(() => test2(), 500)
|
||||
}
|
||||
|
||||
// Start the timer, update the received bytes, and call test1.
|
||||
|
@ -122,7 +123,7 @@ test('display timer works correctly', () => {
|
|||
|
||||
progress.setReceivedBytes(500)
|
||||
|
||||
setTimeout(() => test1(), 100)
|
||||
setTimeout(() => test1(), 500)
|
||||
}
|
||||
|
||||
start()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue