diff --git a/test/client.test.ts b/test/client.test.ts deleted file mode 100644 index 13cc7dd..0000000 --- a/test/client.test.ts +++ /dev/null @@ -1,66 +0,0 @@ -import * as chai from 'chai'; -import { Client } from '../src/client'; -import { Query } from '../src/interfaces/query'; -import { Card } from "../src/interfaces/card"; -import { Set } from "../src/interfaces/set"; - -const expect = chai.expect; -const client: Client = Client.getInstance(); - -describe('Client', () => { - it('should get a single using the cards resource and query params' , () => { - const params: Query[] = [{ - name: 'id', - value: 'xy7-54' - }]; - - client.get('cards', params) - .then(response => { - expect(response).to.be.a('array'); - expect(response[0].name).to.equal('Ampharos'); - }); - }); - - it('should get a default list of cards using the cards resource with no query params', () => { - client.get('cards') - .then(response => { - expect(response).to.be.a('array'); - expect(response.length).to.equal(250); - }); - }); - - it('should get sets using the sets resource and query params', () => { - const params: Query[] = [{ - name: 'name', - value: 'Base' - }]; - - client.get('sets', params) - .then(response => { - expect(response).to.be.a('array'); - expect(response[0]).to.be.a('object'); - }); - }); - - it('should get a single set using the sets resource and query params', () => { - const params: Query[] = [{ - name: 'id', - value: 'base1' - }]; - - client.get('sets', params) - .then(response => { - expect(response).to.be.a('array'); - expect(response[0].name).to.equal('Base'); - }); - }); - - it('should get a default list of sets using the sets resource with no query params', () => { - client.get('sets') - .then(response => { - expect(response).to.be.a('array'); - expect(response[0]).to.be.a('object'); - expect(response[0].id).to.equal('base1'); - }); - }); -}); \ No newline at end of file