File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/html-manager/test/src Expand file tree Collapse file tree 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() {
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+ } ) ;
You can’t perform that action at this time.
0 commit comments