Skip to content

Commit

Permalink
Adjust tests to not assume the callbacks argument will be modified.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Jun 11, 2022
1 parent d8e7fb6 commit 353316a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/base/test/src/widget_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ describe('WidgetModel', function () {
});
expect(this.widget._msg_buffer_callbacks).to.not.equals(null);
// have the comm send a status idle message
callbacks.iopub.status({
this.comm.send.lastCall.args[1].iopub.status({
content: {
execution_state: 'idle',
},
Expand All @@ -662,7 +662,7 @@ describe('WidgetModel', function () {
},
buffer_paths: [],
});
callbacks.iopub.status({
this.comm.send.lastCall.args[1].iopub.status({
content: {
execution_state: 'idle',
},
Expand All @@ -687,7 +687,7 @@ describe('WidgetModel', function () {
state: { a: 'sync test - 2' },
buffer_paths: [],
});
callbacks.iopub.status({
this.comm.send.lastCall.args[1].iopub.status({
content: {
execution_state: 'idle',
},
Expand All @@ -703,7 +703,7 @@ describe('WidgetModel', function () {
},
buffer_paths: [],
});
callbacks.iopub.status({
this.comm.send.lastCall.args[1].iopub.status({
content: {
execution_state: 'idle',
},
Expand Down

0 comments on commit 353316a

Please sign in to comment.