@@ -56,11 +56,11 @@ module.exports = function () {
5656 } ) ;
5757
5858 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 ;
6060 for ( var i = 0 ; i < table . hashes ( ) . length ; i ++ ) {
6161 var statistic = table . hashes ( ) [ i ] . counter ;
6262 var expected = util . literalValueToTestValueNormalIntegers ( table . hashes ( ) [ i ] . result ) ;
63- var given = getStatistic ( statistic , updateStatistics )
63+ var given = getStatistic ( statistic , counters )
6464 if ( ! util . compareValues ( given , expected ) ) {
6565 throw Error ( "Statistics for: " + statistic + " does not match. Expected: '" + expected + "' Given: '" + given + "'" ) ;
6666 }
@@ -195,42 +195,42 @@ this.Then(/^the `Result Summary` `Notifications` has one notification with$/, fu
195195 throw Error ( "No statement type mapping of: " + type )
196196 }
197197
198- function getStatistic ( statementString , updateStatistics ) {
198+ function getStatistic ( statementString , counters ) {
199199 if ( statementString == 'nodes created' ) {
200- return updateStatistics . nodesCreated ( ) ;
200+ return counters . nodesCreated ( ) ;
201201 }
202202 if ( statementString == 'nodes deleted' ) {
203- return updateStatistics . nodesDeleted ( ) ;
203+ return counters . nodesDeleted ( ) ;
204204 }
205205 if ( statementString == 'relationships created' ) {
206- return updateStatistics . relationshipsCreated ( ) ;
206+ return counters . relationshipsCreated ( ) ;
207207 }
208208 if ( statementString == 'relationships deleted' ) {
209- return updateStatistics . relationshipsDeleted ( ) ;
209+ return counters . relationshipsDeleted ( ) ;
210210 }
211211 if ( statementString == 'properties set' ) {
212- return updateStatistics . propertiesSet ( ) ;
212+ return counters . propertiesSet ( ) ;
213213 }
214214 if ( statementString == 'labels added' ) {
215- return updateStatistics . labelsAdded ( ) ;
215+ return counters . labelsAdded ( ) ;
216216 }
217217 if ( statementString == 'labels removed' ) {
218- return updateStatistics . labelsRemoved ( ) ;
218+ return counters . labelsRemoved ( ) ;
219219 }
220220 if ( statementString == 'indexes added' ) {
221- return updateStatistics . indexesAdded ( ) ;
221+ return counters . indexesAdded ( ) ;
222222 }
223223 if ( statementString == 'indexes removed' ) {
224- return updateStatistics . indexesRemoved ( ) ;
224+ return counters . indexesRemoved ( ) ;
225225 }
226226 if ( statementString == 'constraints added' ) {
227- return updateStatistics . constraintsAdded ( ) ;
227+ return counters . constraintsAdded ( ) ;
228228 }
229229 if ( statementString == 'constraints removed' ) {
230- return updateStatistics . constraintsRemoved ( ) ;
230+ return counters . constraintsRemoved ( ) ;
231231 }
232232 if ( statementString == 'contains updates' ) {
233- return updateStatistics . containsUpdates ( ) ;
233+ return counters . containsUpdates ( ) ;
234234 }
235235 throw Error ( "No statistics mapping of: " + statementString )
236236 }
0 commit comments