@@ -56,9 +56,9 @@ describe('TimePlanningPnPayTimeBandRulesService', () => {
5656
5757 describe ( 'getPayTimeBandRule' , ( ) => {
5858 it ( 'should call apiBaseService.get with correct id' , ( done ) => {
59- const mockResponse = {
60- success : true ,
61- model : { id : 123 , payDayTypeRuleId : 1 , startSecondOfDay : 0 , endSecondOfDay : 43200 , payCode : 'DAY' }
59+ const mockResponse = {
60+ success : true ,
61+ model : { id : 123 , payDayTypeRuleId : 1 , startSecondOfDay : 0 , endSecondOfDay : 43200 , payCode : 'DAY' }
6262 } ;
6363 mockApiBaseService . get . mockReturnValue ( of ( mockResponse as any ) ) ;
6464
@@ -73,7 +73,7 @@ describe('TimePlanningPnPayTimeBandRulesService', () => {
7373
7474 describe ( 'createPayTimeBandRule' , ( ) => {
7575 it ( 'should call apiBaseService.post with correct parameters' , ( done ) => {
76- const mockModel = { payDayTypeRuleId : 1 , startSecondOfDay : 0 , endSecondOfDay : 43200 , payCode : 'DAY' } ;
76+ const mockModel = { payDayTypeRuleId : 1 , startSecondOfDay : 0 , endSecondOfDay : 43200 , payCode : 'DAY' , priority : 1 } ;
7777 const mockResponse = { success : true } ;
7878 mockApiBaseService . post . mockReturnValue ( of ( mockResponse as any ) ) ;
7979
@@ -88,7 +88,7 @@ describe('TimePlanningPnPayTimeBandRulesService', () => {
8888
8989 describe ( 'updatePayTimeBandRule' , ( ) => {
9090 it ( 'should call apiBaseService.put with correct parameters' , ( done ) => {
91- const mockModel = { id : 123 , payDayTypeRuleId : 1 , startSecondOfDay : 43200 , endSecondOfDay : 86400 , payCode : 'NIGHT' } ;
91+ const mockModel = { id : 123 , payDayTypeRuleId : 1 , startSecondOfDay : 43200 , endSecondOfDay : 86400 , payCode : 'NIGHT' , priority : 1 } ;
9292 const mockResponse = { success : true } ;
9393 mockApiBaseService . put . mockReturnValue ( of ( mockResponse as any ) ) ;
9494
0 commit comments