/* test/server.js -- test main application, run it with mocha
 * Copyright 2014 Sergei Ianovich
 *
 * Licensed under AGPL-3.0 or later, see LICENSE
 * Process Control Service Web Interface
 */

var app = require('../app');
var request = require('supertest');
var server = request(app);

describe('root page', function(){
  it('should contain logo', function(done){
    server
      .get('/')
      .expect(200)
      .expect(/asutp\.io/)
      .end(done)
  })
});

// vim:ts=2 sts=2 sw=2 et:

@@ -191,19 +191,23 @@
 */%0A%0Avar 
-app
+request
  = requi
@@ -214,22 +214,25 @@
 re('
-../app
+supertest
 ');%0Avar 
 requ
@@ -223,30 +223,29 @@
 test');%0Avar 
-reques
+expec
 t = require(
@@ -241,33 +241,63 @@
  = require('
-supertest
+expect.js');%0A%0Avar app = require('../app
 ');%0Avar serv
@@ -478,21 +478,97 @@
    .end(
-done)
+function(err, res) %7B%0A        expect(!err).to.eql(true);%0A        done();%0A      %7D);
 %0A  %7D)%0A%7D)

print dot in server test