slush-y
Version:
A slush generator for Best Practices with AngularJS Fullstack applications.
24 lines (19 loc) • 599 B
JavaScript
;(function(){
'use strict';
var should = require('should');
var app = require('../../app');
var request = require('supertest');
describe('GET /api/<%= names.plural.camel %>', function() {
it('should respond with JSON array', function(done) {
request(app)
.get('/api/<%= names.plural.camel %>')
.expect(200)
.expect('Content-Type', /json/)
.end(function(err, res) {
if (err) return done(err);
res.body.should.be.instanceof(Array);
done();
});
});
});
}).call(this);