2016-04-04 21:53:52 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const assert = require('assert');
|
|
|
|
|
|
|
|
const strapi = require('../lib/');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Make sure private functions are correctly
|
|
|
|
* required and loaded.
|
|
|
|
*/
|
|
|
|
|
2016-11-07 16:31:34 +01:00
|
|
|
describe('core', () => {
|
|
|
|
it('`strapi` should be an object', () => {
|
2016-04-04 21:53:52 +02:00
|
|
|
assert(typeof strapi === 'object');
|
|
|
|
});
|
|
|
|
|
2016-11-07 16:31:34 +01:00
|
|
|
it('`strapi.load` should be a function', () => {
|
2016-04-04 21:53:52 +02:00
|
|
|
assert(typeof strapi.load === 'function');
|
|
|
|
});
|
|
|
|
|
2016-11-07 16:31:34 +01:00
|
|
|
it('`strapi.server` should be a object', () => {
|
2016-04-21 11:39:18 +02:00
|
|
|
assert(typeof strapi.server === 'object');
|
|
|
|
});
|
|
|
|
|
2016-11-07 16:31:34 +01:00
|
|
|
it('`strapi.start` should be a function', () => {
|
2016-04-04 21:53:52 +02:00
|
|
|
assert(typeof strapi.start === 'function');
|
|
|
|
});
|
|
|
|
|
2016-11-07 16:31:34 +01:00
|
|
|
it('`strapi.stop` should be a function', () => {
|
2016-04-04 21:53:52 +02:00
|
|
|
assert(typeof strapi.stop === 'function');
|
|
|
|
});
|
|
|
|
});
|