@@ -761,6 +761,38 @@ describe('Notification', function () {
761761 } ) ;
762762 } ) ;
763763
764+ describe ( 'content-changed' , function ( ) {
765+ it ( 'defaults to undefined' , function ( ) {
766+ expect ( compiledOutput ( ) ) . to . not . have . nested . deep . property ( 'aps.content-changed' ) ;
767+ } ) ;
768+
769+ it ( 'can be set to a boolean value' , function ( ) {
770+ note . contentChanged = true ;
771+
772+ expect ( compiledOutput ( ) ) . to . have . nested . deep . property ( 'aps.content-changed' , true ) ;
773+ } ) ;
774+
775+ it ( 'can be set to `1`' , function ( ) {
776+ note . contentChanged = 1 ;
777+
778+ expect ( compiledOutput ( ) ) . to . have . nested . deep . property ( 'aps.content-changed' , true ) ;
779+ } ) ;
780+
781+ it ( 'can be set to undefined' , function ( ) {
782+ note . contentChanged = true ;
783+ note . contentChanged = undefined ;
784+
785+ expect ( compiledOutput ( ) ) . to . not . have . nested . deep . property ( 'aps.content-changed' ) ;
786+ } ) ;
787+
788+ describe ( 'setContentChanged' , function ( ) {
789+ it ( 'is chainable' , function ( ) {
790+ expect ( note . setContentChanged ( true ) ) . to . equal ( note ) ;
791+ expect ( compiledOutput ( ) ) . to . have . nested . deep . property ( 'aps.content-changed' , true ) ;
792+ } ) ;
793+ } ) ;
794+ } ) ;
795+
764796 describe ( 'mdm' , function ( ) {
765797 it ( 'defaults to undefined' , function ( ) {
766798 expect ( compiledOutput ( ) ) . to . not . have . nested . deep . property ( 'mdm' ) ;
0 commit comments