@@ -58,17 +58,17 @@ describe('days in budget', () => {
5858} ) ;
5959
6060describe ( 'cost with monthly discount' , ( ) => {
61- test ( 'at 16/hour for 70 days' , ( ) => {
62- const actual = priceWithMonthlyDiscount ( 16 , 70 , 0 ) ;
63- const expected = 8960 ;
64- expect ( actual ) . toBeCloseTo ( expected , DIFFERENCE_PRECISION_IN_DIGITS ) ;
65- } ) ;
61+ test ( 'at 16/hour for 70 days' , ( ) => {
62+ const actual = priceWithMonthlyDiscount ( 16 , 70 , 0 ) ;
63+ const expected = 8960 ;
64+ expect ( actual ) . toBeCloseTo ( expected , DIFFERENCE_PRECISION_IN_DIGITS ) ;
65+ } ) ;
6666
67- test ( 'at 16/hour for 130 days with 15% discount' , ( ) => {
68- const actual = priceWithMonthlyDiscount ( 16 , 130 , 0.15 ) ;
69- const expected = 14528 ;
70- expect ( actual ) . toBeCloseTo ( expected , DIFFERENCE_PRECISION_IN_DIGITS ) ;
71- } ) ;
67+ test ( 'at 16/hour for 130 days with 15% discount' , ( ) => {
68+ const actual = priceWithMonthlyDiscount ( 16 , 130 , 0.15 ) ;
69+ const expected = 14528 ;
70+ expect ( actual ) . toBeCloseTo ( expected , DIFFERENCE_PRECISION_IN_DIGITS ) ;
71+ } ) ;
7272 test ( 'at 29.654321/hour for 220 days with 11.2%' , ( ) => {
7373 const actual = priceWithMonthlyDiscount ( 29.654321 , 220 , 0.112 ) ;
7474 const expected = 46347 ;
0 commit comments