mirror of
https://github.com/strapi/strapi.git
synced 2025-08-01 05:17:14 +00:00
33 lines
706 B
JavaScript
Executable File
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');
|
|
});
|
|
});
|