@@ -233,29 +233,29 @@ describe('sidebar/services/frame-sync', function () {
233
233
} ) ;
234
234
235
235
it ( 'should not create an annotation in the sidebar' , ( ) => {
236
- const ann = { target : [ ] } ;
236
+ const ann = { target :
[ ] , user : 'acct:[email protected] ' } ;
237
237
238
238
fakeBridge . emit ( 'beforeCreateAnnotation' , { tag : 't1' , msg : ann } ) ;
239
239
240
240
assert . notCalled ( fakeAnnotationsService . create ) ;
241
241
} ) ;
242
242
243
243
it ( 'should open the sidebar' , ( ) => {
244
- const ann = { target : [ ] } ;
244
+ const ann = { target :
[ ] , user : 'acct:[email protected] ' } ;
245
245
fakeBridge . emit ( 'beforeCreateAnnotation' , { tag : 't1' , msg : ann } ) ;
246
246
247
247
assert . calledWith ( fakeBridge . call , 'showSidebar' ) ;
248
248
} ) ;
249
249
250
250
it ( 'should open the login prompt panel' , ( ) => {
251
- const ann = { target : [ ] } ;
251
+ const ann = { target :
[ ] , user : 'acct:[email protected] ' } ;
252
252
fakeBridge . emit ( 'beforeCreateAnnotation' , { tag : 't1' , msg : ann } ) ;
253
253
254
254
assert . calledWith ( fakeStore . openSidebarPanel , 'loginPrompt' ) ;
255
255
} ) ;
256
256
257
257
it ( 'should send a "deleteAnnotation" message to the frame' , ( ) => {
258
- const ann = { target : [ ] } ;
258
+ const ann = { target :
[ ] , user : 'acct:[email protected] ' } ;
259
259
fakeBridge . emit ( 'beforeCreateAnnotation' , { tag : 't1' , msg : ann } ) ;
260
260
261
261
assert . calledWith ( fakeBridge . call , 'deleteAnnotation' ) ;
0 commit comments