Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshdasa12345 committed Dec 17, 2024
1 parent 14b1785 commit 30a9be4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/unit-client/assets/javascripts/lib/xhr.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ describe('XHR', () => {
console.log('Params provided to XHR.updateOutlet:', params);
console.log('History location after updateOutlet:', history.location);

if (historyPushSpy.called) {
console.log('history.push was called with:', historyPushSpy.args);
} else {
console.log('history.push was NOT called');
}
// if (historyPushSpy.called) {
// console.log('history.push was called with:', historyPushSpy.args);
// } else {
// console.log('history.push was NOT called');
// }

console.log('Final history.location.search:', history.location.search);

expect(historyPushSpy).not.to.have.been.called;
// expect(historyPushSpy).not.to.have.been.called;
expect(history.location.search).to.equal('')
console.log('Final history.location.search:', history.location.search);
// console.log('Final history.location.search:', history.location.search);

historyPushSpy.restore();
// historyPushSpy.restore();
})
it('should perform page load if unable to pushState', () => {
sinon.stub(history, 'replace').throws('error')
Expand Down

0 comments on commit 30a9be4

Please sign in to comment.