/* 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 request = require('supertest');
var expect = require('expect.js');

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

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

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

@@ -191,23 +191,19 @@
 */%0A%0Avar 
-request
+app
  = requi
@@ -210,25 +210,22 @@
 re('
-supertest
+../app
 ');%0Avar 
 expe
@@ -220,21 +220,22 @@
 ');%0Avar 
-expec
+reques
 t = requ
@@ -243,47 +243,17 @@
 re('
-expect.js');%0A%0Avar app = require('../app
+supertest
 ');%0A
@@ -446,89 +446,13 @@
 end(
-function(err, res) %7B%0A        expect(!err).to.eql(true);%0A        done();%0A      %7D);
+done)
 %0A  %7D

Revert "test: print dot in server test"