

'use strict';

process.env.VISUAL_RECOGNITION_IAM_APIKEY='foo';
var app = require('../../app');
var request = require('supertest');

describe('express', function() {
  it('load home page when GET /', function(done) {
    request(app).get('/').expect(200, done);
  });

  it('load home page when GET /train', function(done) {
    request(app).get('/train').expect(200, done);
  });

  it('404 when page not found', function(done) {
    request(app).get('/foo/bar').expect(404, done);
  });
});
