mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-07-12 00:55:26 +00:00
feat: Add random endpoints to the SDK (#277)
This commit is contained in:
@ -138,3 +138,13 @@ for (const endpoint of endpoints) {
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
test(`random card/set/serie`, async () => {
|
||||
const tcgdex = new TCGdex('en')
|
||||
TCGdex.fetch = fetch
|
||||
|
||||
expect((await tcgdex.random.card())).toBeTruthy()
|
||||
expect((await tcgdex.random.set())).toBeTruthy()
|
||||
expect((await tcgdex.random.serie())).toBeTruthy()
|
||||
})
|
||||
|
Reference in New Issue
Block a user