Skip to content

Commit 9b2d1d1

Browse files
fix lint errors
1 parent 7aa0625 commit 9b2d1d1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/autoupdate.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
WorkflowDispatchEvent,
1717
WorkflowRunEvent,
1818
} from '@octokit/webhooks-types/schema';
19+
import * as core from '@actions/core';
1920

2021
type PullRequestResponse =
2122
Endpoints['GET /repos/{owner}/{repo}/pulls/{pull_number}']['response'];
@@ -1355,7 +1356,7 @@ describe('test `merge`', () => {
13551356
.reply(200, {});
13561357

13571358
const setOutput = jest.fn();
1358-
const infoSpy = jest.spyOn(require('@actions/core'), 'info');
1359+
const infoSpy = jest.spyOn(core, 'info');
13591360

13601361
await updater.merge(owner, prNumber, mergeOpts, setOutput);
13611362

@@ -1395,7 +1396,7 @@ describe('test `merge`', () => {
13951396
.reply(200, {});
13961397

13971398
const setOutput = jest.fn();
1398-
const infoSpy = jest.spyOn(require('@actions/core'), 'info');
1399+
const infoSpy = jest.spyOn(core, 'info');
13991400

14001401
await updater.merge(owner, prNumber, mergeOpts, setOutput);
14011402

0 commit comments

Comments
 (0)