mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-07-29 17:09:50 +00:00
@ -3,6 +3,9 @@
|
|||||||
const { default: TCGdex, Query } = require("../src/tcgdex")
|
const { default: TCGdex, Query } = require("../src/tcgdex")
|
||||||
import fetch from 'node-fetch'
|
import fetch from 'node-fetch'
|
||||||
|
|
||||||
|
// change timeout of execution
|
||||||
|
jest.setTimeout(60000)
|
||||||
|
|
||||||
const fakeFetch = (response, status = 200) => jest.fn(() =>
|
const fakeFetch = (response, status = 200) => jest.fn(() =>
|
||||||
Promise.resolve({
|
Promise.resolve({
|
||||||
status: status,
|
status: status,
|
||||||
|
Reference in New Issue
Block a user