Skip to content

Commit 353316a

Browse files
committed
Adjust tests to not assume the callbacks argument will be modified.
1 parent d8e7fb6 commit 353316a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/base/test/src/widget_test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ describe('WidgetModel', function () {
643643
});
644644
expect(this.widget._msg_buffer_callbacks).to.not.equals(null);
645645
// have the comm send a status idle message
646-
callbacks.iopub.status({
646+
this.comm.send.lastCall.args[1].iopub.status({
647647
content: {
648648
execution_state: 'idle',
649649
},
@@ -662,7 +662,7 @@ describe('WidgetModel', function () {
662662
},
663663
buffer_paths: [],
664664
});
665-
callbacks.iopub.status({
665+
this.comm.send.lastCall.args[1].iopub.status({
666666
content: {
667667
execution_state: 'idle',
668668
},
@@ -687,7 +687,7 @@ describe('WidgetModel', function () {
687687
state: { a: 'sync test - 2' },
688688
buffer_paths: [],
689689
});
690-
callbacks.iopub.status({
690+
this.comm.send.lastCall.args[1].iopub.status({
691691
content: {
692692
execution_state: 'idle',
693693
},
@@ -703,7 +703,7 @@ describe('WidgetModel', function () {
703703
},
704704
buffer_paths: [],
705705
});
706-
callbacks.iopub.status({
706+
this.comm.send.lastCall.args[1].iopub.status({
707707
content: {
708708
execution_state: 'idle',
709709
},

0 commit comments

Comments
 (0)