1a5ae4783dd4e6f7df94c798a6f2af150936e833
[motion.git] / server / api / fax_room / fax_room.spec.js
1 'use strict';
2
3 var should = require('should');
4 var app = require('../../app');
5 var request = require('supertest');
6
7 describe('GET /api/fax/rooms', function() {
8
9   it('should respond with JSON array', function(done) {
10     request(app)
11       .get('/api/fax/rooms')
12       .expect(200)
13       .expect('Content-Type', /json/)
14       .end(function(err, res) {
15         if (err) return done(err);
16         res.body.should.be.instanceof(Array);
17         done();
18       });
19   });
20 });