mirror of
https://github.com/wassname/talk.git
synced 2026-07-04 19:50:17 +08:00
Rectify linting and testing disagreements
This commit is contained in:
+7
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user