From 4252b511c261d3ac8be2c032d2db2a6c9e422b94 Mon Sep 17 00:00:00 2001 From: Tobiah Date: Wed, 8 Apr 2020 19:07:29 -0500 Subject: [PATCH] chore(tests): fix unit tests --- test/test.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/test/test.js b/test/test.js index 314751c..75fd748 100644 --- a/test/test.js +++ b/test/test.js @@ -42,7 +42,7 @@ describe('Nexus Query', () => { embed.type.should.equal('rich'); embed.should.have.own.property('title'); embed.title.should.have.string(`[${settings.lookupAlias(platform).toUpperCase()}]`); - embed.description.should.have.string(querystring); + embed.title.should.have.string(querystring); }; describe('price check query attachment', () => { @@ -73,16 +73,14 @@ describe('Nexus Query', () => { }); it('should create an attachment when querying for a mod', async () => { - try { - const modString = 'Vermillion Storm'; - const result = await nexus.priceCheckQueryAttachment(modString); - result.should.be.an('array'); - const embed = result[0]; - embed.should.be.an('object'); - embed.description.should.have.string(modString); - } catch (error) { - should.not.exist(error); - } + const modString = 'Vermillion Storm'; + const result = await nexus.priceCheckQueryAttachment(modString); + result.should.be.an('array'); + const embed = result[0]; + embed.should.be.an('object'); + embed.title.should.have.string(modString); + + embed.fields[0].should.be.an('object'); }); it('should create an no results for attachment query', async () => {