2017-08-16 18:47:02 +02:00

33 lines
706 B
JavaScript
Executable File

'use strict';
const assert = require('assert');
const strapi = require('../lib/');
/**
* Make sure private functions are correctly
* required and loaded.
*/
describe('core', () => {
it('`strapi` should be an object', () => {
assert(typeof strapi === 'object');
});
it('`strapi.load` should be a function', () => {
assert(typeof strapi.load === 'function');
});
it('`strapi.server` should be a object', () => {
assert(typeof strapi.server === 'object');
});
it('`strapi.start` should be a function', () => {
assert(typeof strapi.start === 'function');
});
it('`strapi.stop` should be a function', () => {
assert(typeof strapi.stop === 'function');
});
});