mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-04-22 10:42:10 +00:00
fix: test failing after 30s
Signed-off-by: Avior <git@avior.me>
This commit is contained in:
parent
07403cb3ae
commit
c03183bd6f
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user