Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusmelke committed Mar 3, 2016
1 parent b1b0782 commit c28ce13
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/v1/result-summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class StatementStatistics {
constructor(statistics) {
this._stats = {
nodesCreated: 0,
nodesDelete: 0,
nodesDeleted: 0,
relationshipsCreated: 0,
relationshipsDeleted: 0,
propertiesSet: 0,
Expand All @@ -124,11 +124,11 @@ class StatementStatistics {
indexesRemoved: 0,
constraintsAdded: 0,
constraintsRemoved: 0
}
};
Object.keys(statistics).forEach((index) => {
let val = isInt(statistics[index]) ? statistics[index].toInt() : statistics[index];
//To camelCase
this._stats[index.replace(/(\-\w)/g, (m) => m[1].toUpperCase())] = val;
this._stats[index.replace(/(\-\w)/g, (m) => m[1].toUpperCase())] =
isInt(statistics[index]) ? statistics[index].toInt() : statistics[index];
});
}

Expand Down Expand Up @@ -233,7 +233,7 @@ class Notification {
constructor(notification) {
this.code = notification.code;
this.title = notification.title;
this.description = notification.desciption;
this.description = notification.description;
this.position = this._constructPosition(notification.position);
}

Expand Down

0 comments on commit c28ce13

Please sign in to comment.