Skip to content

update module - #1835

Open
lightmild wants to merge 1 commit into
danliris:devfrom
lightmild:dev
Open

update module#1835
lightmild wants to merge 1 commit into
danliris:devfrom
lightmild:dev

Conversation

@lightmild

Copy link
Copy Markdown
Contributor

update module

update module
});
});

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

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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;

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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