mirror of
https://github.com/Koenkk/zigbee-OTA.git
synced 2026-06-24 13:18:14 +00:00
29 lines
861 B
TypeScript
29 lines
861 B
TypeScript
// import type CoreApi from '@actions/core';
|
|
// import type {Context} from '@actions/github/lib/context';
|
|
|
|
import type {Octokit} from "@octokit/rest";
|
|
import {describe, it, vi} from "vitest";
|
|
|
|
const github = {
|
|
rest: {
|
|
issues: {
|
|
createComment:
|
|
vi.fn<(...args: Parameters<Octokit["rest"]["issues"]["createComment"]>) => ReturnType<Octokit["rest"]["issues"]["createComment"]>>(),
|
|
},
|
|
pulls: {
|
|
createReviewComment:
|
|
vi.fn<
|
|
(
|
|
...args: Parameters<Octokit["rest"]["pulls"]["createReviewComment"]>
|
|
) => ReturnType<Octokit["rest"]["pulls"]["createReviewComment"]>
|
|
>(),
|
|
},
|
|
},
|
|
};
|
|
|
|
describe("Github Workflow: Report OTA PR", () => {
|
|
it("passes", () => {
|
|
console.log(github);
|
|
});
|
|
});
|