Skip to content

Commit

Permalink
chore(tests): fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobiah committed Apr 9, 2020
1 parent 6598674 commit 4252b51
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit 4252b51

Please sign in to comment.