From 2c217c240a52e4d2ed64ec7c03f16095967ebf8f Mon Sep 17 00:00:00 2001 From: David Erwin Date: Sat, 5 Nov 2016 11:26:01 -0400 Subject: [PATCH] Rectify linting and testing disagreements --- tests/asset.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/asset.js b/tests/asset.js index 187a9f1e7..7ba98679d 100644 --- a/tests/asset.js +++ b/tests/asset.js @@ -5,6 +5,8 @@ const expect = require('chai').expect; let chai = require('chai'); let chaiHttp = require('chai-http'); let server = require('../app'); +let should = chai.should(); +should; // nullop to satisfy linting chai.use(chaiHttp); @@ -23,11 +25,13 @@ describe('Asset', () => { beforeEach((done) => { // TODO: implement asset remove - return Asset.removeAll({}) + Asset.removeAll({}) .then(() => { done(); }); + Asset; // nullop to satisfy linting. + }); describe('/GET Asset', () => { @@ -88,7 +92,8 @@ describe('Asset', () => { res.body.should.be.a('object'); res.body.should.have.property('id'); - // ensure the asset has the same id as above + // Ensure the asset has the same id as above. + // This tests the single url per Id concept. expect(assetId).to.equal(res.body.id); done();