mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
* chore: improvements * chore: add testing workflow * fix: types and lint * chore: change dynamic * chore: improvements * chore: no need repository to check status
21 lines
604 B
TypeScript
21 lines
604 B
TypeScript
import { Soxa as ServiceProvider } from "https://deno.land/x/soxa@1.4/src/core/Soxa.ts";
|
|
import { defaults } from "https://deno.land/x/soxa@1.4/src/defaults.ts";
|
|
import {
|
|
assertEquals,
|
|
assertRejects,
|
|
} from "https://deno.land/std@0.203.0/assert/mod.ts";
|
|
import {
|
|
assertSpyCalls,
|
|
spy,
|
|
} from "https://deno.land/std@0.203.0/testing/mock.ts";
|
|
|
|
import { CONSTANTS } from "./src/utils.ts";
|
|
|
|
const baseURL = Deno.env.get("GITHUB_API") || CONSTANTS.DEFAULT_GITHUB_API;
|
|
|
|
const soxa = new ServiceProvider({
|
|
...defaults,
|
|
baseURL,
|
|
});
|
|
|
|
export { assertEquals, assertRejects, assertSpyCalls, soxa, spy };
|