Skip to content

Commit f762c93

Browse files
committed
test: fixup jest types
Signed-off-by: Sam Gammon <sam@elide.dev>
1 parent f7dd68c commit f762c93

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

__tests__/main.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('action', () => {
4747
await main.run()
4848
expect(action).toHaveReturned()
4949
expect(action).not.toThrow()
50-
expect(setFailed).not.toBeCalled()
50+
expect(setFailed).not.toHaveBeenCalled()
5151
expect(getInput).toHaveBeenCalledWith(OptionName.VERSION)
5252
expect(getInput).toHaveBeenCalledWith(OptionName.OS)
5353
expect(getInput).toHaveBeenCalledWith(OptionName.ARCH)
@@ -68,7 +68,7 @@ describe('action', () => {
6868
await main.run()
6969
expect(action).toHaveReturned()
7070
expect(action).not.toThrow()
71-
expect(setFailed).not.toBeCalled()
71+
expect(setFailed).not.toHaveBeenCalled()
7272
expect(setOutput).toHaveBeenCalledWith(
7373
ActionOutputName.PATH,
7474
expect.anything()
@@ -88,7 +88,7 @@ describe('action', () => {
8888
await main.run()
8989
}
9090
expect(runner).not.toThrow()
91-
expect(setFailed).toBeCalled()
91+
expect(setFailed).toHaveBeenCalled()
9292
})
9393

9494
// it('should support downloading from a custom url', async () => {
@@ -145,7 +145,7 @@ describe('action', () => {
145145
})
146146
expect(action).toHaveReturned()
147147
expect(action).not.toThrow()
148-
expect(setFailed).not.toBeCalled()
148+
expect(setFailed).not.toHaveBeenCalled()
149149
expect(setOutput).toHaveBeenCalledWith(
150150
ActionOutputName.PATH,
151151
expect.anything()
@@ -164,7 +164,7 @@ describe('action', () => {
164164
})
165165
expect(action).toHaveReturned()
166166
expect(action).not.toThrow()
167-
expect(setFailed).not.toBeCalled()
167+
expect(setFailed).not.toHaveBeenCalled()
168168
expect(setOutput).toHaveBeenCalledWith(
169169
ActionOutputName.PATH,
170170
expect.anything()
@@ -187,7 +187,7 @@ describe('action', () => {
187187
)
188188
if (err) throw err
189189
}
190-
expect(t).toThrowError()
190+
expect(t).toThrow()
191191
getInput.mockImplementation((name: string): string => {
192192
switch (name) {
193193
case OptionName.OS:
@@ -200,7 +200,7 @@ describe('action', () => {
200200
})
201201

202202
await main.run({ os, arch })
203-
expect(setFailed).toBeCalled()
203+
expect(setFailed).toHaveBeenCalled()
204204
})
205205
}
206206
const itShouldAllow = (os: ElideOS, arch: ElideArch) => {
@@ -215,7 +215,7 @@ describe('action', () => {
215215
)
216216
if (err) throw err
217217
}
218-
expect(t).not.toThrowError()
218+
expect(t).not.toThrow()
219219
})
220220
}
221221

src/releases.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@ async function maybeDownload(
301301
let elideDir: string | null = null
302302

303303
try {
304-
core.debug(`Checking for cached tool 'elide' at version '${version.tag_name}'`)
304+
core.debug(
305+
`Checking for cached tool 'elide' at version '${version.tag_name}'`
306+
)
305307
elideDir = toolCache.find('elide', version.tag_name, options.arch)
306308
} catch (err) {
307309
/* istanbul ignore next */

0 commit comments

Comments
 (0)