@@ -56,11 +56,11 @@ module.exports = function () {
56
56
} ) ;
57
57
58
58
this . Then ( / ^ r e q u e s t i n g ` C o u n t e r s ` f r o m ` R e s u l t S u m m a r y ` s h o u l d g i v e $ / , function ( table ) {
59
- var updateStatistics = this . summary . updateStatistics
59
+ var counters = this . summary . counters ;
60
60
for ( var i = 0 ; i < table . hashes ( ) . length ; i ++ ) {
61
61
var statistic = table . hashes ( ) [ i ] . counter ;
62
62
var expected = util . literalValueToTestValueNormalIntegers ( table . hashes ( ) [ i ] . result ) ;
63
- var given = getStatistic ( statistic , updateStatistics )
63
+ var given = getStatistic ( statistic , counters )
64
64
if ( ! util . compareValues ( given , expected ) ) {
65
65
throw Error ( "Statistics for: " + statistic + " does not match. Expected: '" + expected + "' Given: '" + given + "'" ) ;
66
66
}
@@ -195,42 +195,42 @@ this.Then(/^the `Result Summary` `Notifications` has one notification with$/, fu
195
195
throw Error ( "No statement type mapping of: " + type )
196
196
}
197
197
198
- function getStatistic ( statementString , updateStatistics ) {
198
+ function getStatistic ( statementString , counters ) {
199
199
if ( statementString == 'nodes created' ) {
200
- return updateStatistics . nodesCreated ( ) ;
200
+ return counters . nodesCreated ( ) ;
201
201
}
202
202
if ( statementString == 'nodes deleted' ) {
203
- return updateStatistics . nodesDeleted ( ) ;
203
+ return counters . nodesDeleted ( ) ;
204
204
}
205
205
if ( statementString == 'relationships created' ) {
206
- return updateStatistics . relationshipsCreated ( ) ;
206
+ return counters . relationshipsCreated ( ) ;
207
207
}
208
208
if ( statementString == 'relationships deleted' ) {
209
- return updateStatistics . relationshipsDeleted ( ) ;
209
+ return counters . relationshipsDeleted ( ) ;
210
210
}
211
211
if ( statementString == 'properties set' ) {
212
- return updateStatistics . propertiesSet ( ) ;
212
+ return counters . propertiesSet ( ) ;
213
213
}
214
214
if ( statementString == 'labels added' ) {
215
- return updateStatistics . labelsAdded ( ) ;
215
+ return counters . labelsAdded ( ) ;
216
216
}
217
217
if ( statementString == 'labels removed' ) {
218
- return updateStatistics . labelsRemoved ( ) ;
218
+ return counters . labelsRemoved ( ) ;
219
219
}
220
220
if ( statementString == 'indexes added' ) {
221
- return updateStatistics . indexesAdded ( ) ;
221
+ return counters . indexesAdded ( ) ;
222
222
}
223
223
if ( statementString == 'indexes removed' ) {
224
- return updateStatistics . indexesRemoved ( ) ;
224
+ return counters . indexesRemoved ( ) ;
225
225
}
226
226
if ( statementString == 'constraints added' ) {
227
- return updateStatistics . constraintsAdded ( ) ;
227
+ return counters . constraintsAdded ( ) ;
228
228
}
229
229
if ( statementString == 'constraints removed' ) {
230
- return updateStatistics . constraintsRemoved ( ) ;
230
+ return counters . constraintsRemoved ( ) ;
231
231
}
232
232
if ( statementString == 'contains updates' ) {
233
- return updateStatistics . containsUpdates ( ) ;
233
+ return counters . containsUpdates ( ) ;
234
234
}
235
235
throw Error ( "No statistics mapping of: " + statementString )
236
236
}
0 commit comments