Skip to content

Commit b51f509

Browse files
committed
Update progress count
1 parent a235b7f commit b51f509

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/js/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function checkStatus() {
111111
jQuery( '#wpe-progress' ).show();
112112

113113
// Display the current plugin count.
114-
jQuery( '#wpe-progress-count' ).text( ( obj.total - obj.count ) + '/' + obj.total );
114+
jQuery( '#wpe-progress-count' ).text( ( obj.total - obj.count + 1 ) + '/' + obj.total );
115115

116116
// Display the object being scanned.
117117
jQuery( '#wpe-progress-active' ).text( obj.activeJob );

tests/qunit/test-run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ QUnit.test( 'Test checkStatus progress', function( assert ) {
124124
return true;
125125
},
126126
onAfterComplete: function() { // Check the results of checkStatus();
127-
assert.ok( $( '#wpe-progress-count' ).text() === '16/17', 'Progress count is correct.' );
127+
assert.ok( $( '#wpe-progress-count' ).text() === '17/17', 'Progress count is correct.' );
128128
assert.ok( $( '#progressbar' ).progressbar( 'value' ) === 94.1176470588 , 'Progress bar is correct.' );
129129

130130
// Clear the next queued checkStatus call.

0 commit comments

Comments
 (0)