Skip to content

create, manager, unit test dev - #1847

Open
lightmild wants to merge 2 commits into
danliris:devfrom
lightmild:dev
Open

create, manager, unit test dev#1847
lightmild wants to merge 2 commits into
danliris:devfrom
lightmild:dev

Conversation

@lightmild

Copy link
Copy Markdown
Contributor

create, manager, unit test dev

});
});

it('#05. should null when get destroyed 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.

});
});

it('#04. should success when destroy data with id', 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("#03. should success when get Accepting Order Monitoring XLS", 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("#02. should success when get Accepting Order Monitoring", 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.

@@ -0,0 +1,110 @@
'use strict';

var ObjectId = require("mongodb").ObjectId;

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((result) => {
done();
})
.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(`#06. should success when remove all data`, function(done) {
manager.collection.remove({})
.then((result) => {

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(`#06. should success when remove all 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.

'template literal syntax' is only available in ES6 (use 'esversion: 6').
'it' is not defined.

should.equal(data, null);
done();
})
.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').

unit test
create manager sp master plan
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