Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Helpers
- * command format:
- * mocha test/0010-status-changes.js --case=check --from=1
- * parameters:
- * case: name of file json (section of case) in helpers/certification/cases/
- * step: items in one step
- * from: run from item number
- * count: run count time
- * multi:
- * */
- process.env.APP_ENV = 'test';
- var _path = require('path').normalize;
- global.Config = require(_path(__dirname + '/../config'));
- global.Helper = require(_path(__dirname + '/../components/helper'));
- Helper.loadComponent('array');
- var Chai = require('chai'),
- Model = require('objection').Model,
- Knex = require('knex')(Config.get('knex'));
- Model.knex(Knex);
- var certComponent = Helper.loadModule('check');
- var assert = Chai.assert;
- var description = [
- 'Request check status'
- ];
- Helper.debug(description.join('\n'));
- describe(
- 'Status chenges checks', function () {
- certComponent.runCheckStatus(
- null,
- function (e, results) {
- done();
- }
- )
- ;
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement