// use strict
'use strict';

// create eden
var assert  = require ('assert');

// describe eden
describe ('EdenJS Express App', () => {
  // test standard event emitter functionality
  it ('should pass express as app', (done) => {
    // assert express
    assert.equal (typeof global.eden.app, 'function');

    // run done
    done ();
  });
});

// use strict
'use strict';

// create eden
var assert  = require ('assert');

// describe eden
describe ('Example Controller', () => {
  // test standard event emitter functionality
  it ('should be required correctly', (done) => {
    // assert express
    global.eden.controller ('/lib/bundles/example/controllers/example').then (ctrl => {
      // assert controller has action
      assert (typeof ctrl.eden !== 'undefined');

      // run done
      done ();
    });
  });
});

complete example controller unit tests