Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions __tests__/interceptor.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { createRequest, RequestOptions } from "node-mocks-http";
import getAxiosInstance from "../src/modules/interceptor";
import { InternalAxiosRequestConfig } from "axios";
import hmacSHA256 from "crypto-js/hmac-sha256";
import Hex from "crypto-js/enc-hex";
import date from "date-and-time";
Expand Down Expand Up @@ -31,9 +32,8 @@ describe("getAxiosInstance", () => {

const instance = getAxiosInstance("https://api.dev.saasus.io/v1/auth");

const fulfilledReq: Request =
// @ts-expect-error handlersでdoesn't exist エラーが出るため
instance.interceptors.request.handlers[0].fulfilled(request);
// @ts-expect-error handlersでdoesn't exist エラーが出るため
const fulfilledReq: InternalAxiosRequestConfig = instance.interceptors.request.handlers[0].fulfilled(request);

const now = date.format(new Date(), "YYYYMMDDHHmm", true);
const secret = process.env.SAASUS_SECRET_KEY || "";
Expand Down
Loading
Loading