Skip to content

Commit

Permalink
Move restoring stub before assertions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Comandeer committed Nov 21, 2022
1 parent 2d50edc commit cb6a741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/plugins/link/anchor.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,14 @@
dialog.getButton( 'ok' ).click();

resume( function() {
windowStub.restore();

assert.areEqual( 1, windowStub.callCount );
assert.areEqual(
bot.editor.lang.link.anchor.errorWhitespace,
windowStub.args[ 0 ][ 0 ],
'Anchor containing' + name + 'space should not be added'
);

windowStub.restore();
}, 10 );

wait();
Expand Down

0 comments on commit cb6a741

Please sign in to comment.