@@ -287,6 +287,7 @@ describe("NotificationService", function () {
287
287
expect ( actions . tweaks . highlight ) . toEqual ( true ) ;
288
288
} ) ;
289
289
290
+ // TODO: This is not spec compliant behaviour.
290
291
it ( "should bing on character group ([abc]) bing words." , function ( ) {
291
292
testEvent . event . content ! . body = "Ping!" ;
292
293
let actions = pushProcessor . actionsForEvent ( testEvent ) ;
@@ -296,12 +297,14 @@ describe("NotificationService", function () {
296
297
expect ( actions . tweaks . highlight ) . toEqual ( true ) ;
297
298
} ) ;
298
299
300
+ // TODO: This is not spec compliant behaviour.
299
301
it ( "should bing on character range ([a-z]) bing words." , function ( ) {
300
302
testEvent . event . content ! . body = "I ate 6 pies" ;
301
303
const actions = pushProcessor . actionsForEvent ( testEvent ) ;
302
304
expect ( actions . tweaks . highlight ) . toEqual ( true ) ;
303
305
} ) ;
304
306
307
+ // TODO: This is not spec compliant behaviour.
305
308
it ( "should bing on character negation ([!a]) bing words." , function ( ) {
306
309
testEvent . event . content ! . body = "boke" ;
307
310
let actions = pushProcessor . actionsForEvent ( testEvent ) ;
@@ -330,6 +333,8 @@ describe("NotificationService", function () {
330
333
// invalid
331
334
332
335
it ( "should gracefully handle bad input." , function ( ) {
336
+ // The following body is an object (not a string) and thus is invalid
337
+ // for matching against.
333
338
testEvent . event . content ! . body = { foo : "bar" } ;
334
339
const actions = pushProcessor . actionsForEvent ( testEvent ) ;
335
340
expect ( actions . tweaks . highlight ) . toEqual ( false ) ;
0 commit comments