Skip to content
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

Security improvement batch #6622

Merged
merged 17 commits into from
Jan 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'dev' into admin_messages
  • Loading branch information
sulkaharo committed Jan 1, 2021
commit 871ccb96a400a67216734e335c9cb784b686066e
5 changes: 2 additions & 3 deletions tests/api3.create.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ describe('API3 CREATE', function() {
});
delete doc.identifier;

return await new Promise(function(resolve, reject) {
self.instance.ctx.treatments.create([doc], async (err) => { // let's insert the document in APIv1's way
await new Promise((resolve, reject) => {
self.instance.ctx.treatments.create([doc], async (err) => { // let's insert the document in APIv1's way
should.not.exist(err);
doc._id = doc._id.toString();

Expand All @@ -423,7 +423,6 @@ describe('API3 CREATE', function() {
delete doc._id; // APIv1 updates input document, we must get rid of _id for the next round
oldBody.should.containEql(doc);


const doc2 = Object.assign({}, doc, {
eventType: 'Meal Bolus',
insulin: 0.4,
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.