- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
update module #1835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
update module #1835
Conversation
update module
| }); | ||
| }); | ||
|  | ||
| it("#02. should error when create new data with end < start ", function (done) { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'it' is not defined.
| }) | ||
| }); | ||
|  | ||
| it("#01. should error when create new data with empty data", function (done) { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'it' is not defined.
|  | ||
| var moment = require('moment'); | ||
|  | ||
| before('#00. connect db', function (done) { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'before' is not defined.
|  | ||
|  | ||
|  | ||
| var moment = require('moment'); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'require' is not defined.
| var Manager = require("../../../src/managers/sp-master-plan/working-capacities-standard-manager"); | ||
| var manager = null; | ||
| var dataUtil =require("../../data-util/sp-master-plan/working-capacities-standard-data-util"); | ||
| var validate = require("dl-models").validator.spMasterPlan.workingCapacitiesStandard; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'require' is not defined.
| .then((id) => { | ||
| done("should error when create new data with end < start"); | ||
| }) | ||
| .catch((e) => { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| data.start=10; | ||
| data.end=5; | ||
| manager.create(data) | ||
| .then((id) => { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
|  | ||
| it("#02. should error when create new data with end < start ", function (done) { | ||
| dataUtil.getNewData() | ||
| .then((data) => { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| .then((id) => { | ||
| done("should error when create new data with empty data"); | ||
| }) | ||
| .catch((e) => { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
|  | ||
| it("#01. should error when create new data with empty data", function (done) { | ||
| manager.create({}) | ||
| .then((id) => { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
update module