Skip to content

Conversation

@lightmild
Copy link
Contributor

update module

update module
});
});

it("#02. should error when create new data with end < start ", function (done) {

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) {

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) {

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');

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;

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) => {

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) => {

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) => {

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) => {

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) => {

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').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants