mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
* chore: retries improvements * chore: improvements on retries * chore: improvements on retries * chore: add unit test * chore: format * chore: format * chore: format * fix: remove console
31 lines
661 B
TypeScript
31 lines
661 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,
|
|
returnsNext,
|
|
spy,
|
|
stub,
|
|
} 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,
|
|
returnsNext,
|
|
soxa,
|
|
spy,
|
|
stub,
|
|
};
|