UNPKG

979 BJavaScriptView Raw
1'use strict';
2
3//var Async = require('async');
4//var Request = require('supertest');
5//
6//var app = require('../src/app');
7//var TestUtils = require('./TestUtils');
8//
9//describe('REST Interface - Archive', () => {
10// before(function (done) {
11// this.timeout(0);
12// Async.series([
13// (callback) => {
14// TestUtils.DropCollection('cameras', callback);
15// },
16// (callback) => {
17// if (app.init({
18// logLevel : app.LOG_LEVEL.INFO,
19// mongoUrl : process.env.CLIO_MONGO_URL,
20// serverPort: process.env.CLIO_DATA_API_PORT
21// })) {
22// app.launch(callback);
23// }
24// }
25// ], done);
26// });
27//
28// describe('GET /cameras/:cameraId/streams/:streamId/archive-info', () => {
29// it('should respond 400 if malformed camera ID', (done) => {
30// Request(app).get('/cameras/1/streams/0/archive-info').expect(400, done);
31// });
32// });
33//
34// after(() => app.shutdown());
35//});
\No newline at end of file