Skip to content

Commit 966e8c2

Browse files
author
Zhen Li
committed
bulalal
1 parent 0ca8b37 commit 966e8c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/result-summary.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,14 @@ class StatementStatistics {
210210
Object.keys(statistics).forEach(index => {
211211
// To camelCase
212212
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') {
213+
if (camelCaseIndex in this._stats) {
214+
this._stats[camelCaseIndex] = intValue(statistics[index])
215+
} else if (camelCaseIndex === 'systemUpdates') {
214216
this._systemUpdates = intValue(statistics[index])
215217
}
216218
})
219+
220+
this._stats = Object.freeze(this._stats)
217221
}
218222

219223
/**

0 commit comments

Comments
 (0)