Test SDK without the "single" parameter; Small cleanup; Allow Client.get to accept a string for ID path parameter
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pokemon-tcg-sdk-typescript",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.0",
|
||||
"description": "Typescript SDK for the PokemonTCG API (https://pokemontcg.io)",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
@ -16,7 +16,8 @@
|
||||
},
|
||||
"author": "Bradyn Glines",
|
||||
"contributors": [
|
||||
"CptSpaceToaster"
|
||||
"CptSpaceToaster",
|
||||
"Monbrey"
|
||||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
@ -50,8 +50,8 @@ describe('Client', () => {
|
||||
|
||||
Client.get('sets', params)
|
||||
.then(response => {
|
||||
expect(response).to.be.a('object');
|
||||
expect(response.name).to.equal('Base');
|
||||
expect(response).to.be.a('array');
|
||||
expect(response[0].name).to.equal('Base');
|
||||
})
|
||||
.catch(error => console.error(error));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user