We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ca8b37 commit 966e8c2Copy full SHA for 966e8c2
src/result-summary.js
@@ -210,10 +210,14 @@ class StatementStatistics {
210
Object.keys(statistics).forEach(index => {
211
// To camelCase
212
const camelCaseIndex = index.replace(/(-\w)/g, m => m[1].toUpperCase())
213
- if (camelCaseIndex in this._stats) { this._stats[camelCaseIndex] = intValue(statistics[index]) } else if (camelCaseIndex === 'systemUpdates') {
+ if (camelCaseIndex in this._stats) {
214
+ this._stats[camelCaseIndex] = intValue(statistics[index])
215
+ } else if (camelCaseIndex === 'systemUpdates') {
216
this._systemUpdates = intValue(statistics[index])
217
}
218
})
219
+
220
+ this._stats = Object.freeze(this._stats)
221
222
223
/**
0 commit comments