Added asset settings + improved tests for routes

This commit is contained in:
Wyatt Johnson
2016-11-29 10:01:52 -07:00
parent 735f2d09ad
commit ac17fc2cc6
13 changed files with 401 additions and 407 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ chai.use(require('chai-http'));
const Asset = require('../../../../models/asset');
describe('/assets', () => {
describe('/api/v1/assets', () => {
beforeEach(() => {
return Asset.create([
@@ -27,7 +27,7 @@ describe('/assets', () => {
]);
});
describe('GET', () => {
describe('#get', () => {
it('should return all assets without a search query', () => {
return chai.request(app)