main.test.js 483 B

123456789101112131415161718
  1. const assert = require('assert')
  2. const main = require('./main')
  3. describe('methods in server.js', () => {
  4. it('has serveNcmApi', () => {
  5. assert.strictEqual(typeof main.serveNcmApi, 'function')
  6. })
  7. it('has getModulesDefinitions', () => {
  8. assert.strictEqual(typeof main.getModulesDefinitions, 'function')
  9. })
  10. })
  11. describe('methods in module', () => {
  12. it('has activate_init_profile', () => {
  13. assert.strictEqual(typeof main.activate_init_profile, 'function')
  14. })
  15. })