Test SDK without the "single" parameter; Small cleanup; Allow Client.get to accept a string for ID path parameter

This commit is contained in:
Bradyn Glines
2019-08-07 19:27:24 -05:00
parent 682f90c49a
commit a53c961506
2 changed files with 5 additions and 4 deletions

View File

@ -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": {

View File

@ -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));
});