Skip to content

Commit f7c4ec4

Browse files
committed
Fix html manager tests.
1 parent 35ac3e4 commit f7c4ec4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/html-manager/test/src/output_test.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ describe('Output widget', function() {
209209
it('renders text output', async () => {
210210
const manager = new HTMLManager();
211211
const modelId = 'u-u-i-d';
212-
const modelCreate: base.IModelOptions = {
212+
const modelCreate = {
213213
model_name: 'OutputModel',
214214
model_id: modelId,
215215
model_module: '@jupyter-widgets/output',
@@ -233,7 +233,9 @@ describe('Output widget', function() {
233233
widgetTag.className = 'widget-subarea';
234234
document.body.appendChild(widgetTag);
235235
const model = await manager.new_model(modelCreate, modelState);
236-
await manager.display_view(manager.create_view(model), widgetTag);
236+
await manager.display_model(
237+
undefined, model, { el: widgetTag }
238+
);
237239
expect(widgetTag.innerText).to.equal(startingText);
238240

239241
model.set('outputs', [
@@ -245,4 +247,4 @@ describe('Output widget', function() {
245247
]);
246248
expect(widgetTag.innerText).to.equal(endingText);
247249
});
248-
});
250+
});

0 commit comments

Comments
 (0)