File tree 1 file changed +5
-3
lines changed
packages/html-manager/test/src
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ describe('Output widget', function() {
209
209
it ( 'renders text output' , async ( ) => {
210
210
const manager = new HTMLManager ( ) ;
211
211
const modelId = 'u-u-i-d' ;
212
- const modelCreate : base . IModelOptions = {
212
+ const modelCreate = {
213
213
model_name : 'OutputModel' ,
214
214
model_id : modelId ,
215
215
model_module : '@jupyter-widgets/output' ,
@@ -233,7 +233,9 @@ describe('Output widget', function() {
233
233
widgetTag . className = 'widget-subarea' ;
234
234
document . body . appendChild ( widgetTag ) ;
235
235
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
+ ) ;
237
239
expect ( widgetTag . innerText ) . to . equal ( startingText ) ;
238
240
239
241
model . set ( 'outputs' , [
@@ -245,4 +247,4 @@ describe('Output widget', function() {
245
247
] ) ;
246
248
expect ( widgetTag . innerText ) . to . equal ( endingText ) ;
247
249
} ) ;
248
- } ) ;
250
+ } ) ;
You can’t perform that action at this time.
0 commit comments