@@ -54,7 +54,7 @@ describe('Order daos tests', () => {
5454 await totalAmtForDate ( date ) ;
5555 } ) . rejects . toThrow ( mockError ) ;
5656 } ) ;
57- it ( 'should return total amount as 0 for the day' , async ( ) => {
57+ it ( 'should return total amount as 0 for the day as no order is placed on that day ' , async ( ) => {
5858 mockingoose ( model ) . toReturn ( [ ] , 'aggregate' ) ;
5959 const res = await totalAmtForDate ( date ) ;
6060 expect ( res ) . toBe ( 0 ) ;
@@ -88,7 +88,7 @@ describe('Order daos tests', () => {
8888 await totalByDateForCategory ( date , category ) ;
8989 } ) . rejects . toThrow ( mockError ) ;
9090 } ) ;
91- it ( 'should return total amt as 0 for the day for a category' , async ( ) => {
91+ it ( 'should return total amt as 0 for the day for a category as no order is placed for that category on that day ' , async ( ) => {
9292 mockingoose ( model ) . toReturn ( [ ] , 'aggregate' ) ;
9393 const res = await totalByDateForCategory ( date , category ) ;
9494 expect ( res ) . toBe ( 0 ) ;
@@ -109,7 +109,7 @@ describe('Order daos tests', () => {
109109 } ) . rejects . toThrow ( mockError ) ;
110110 } ) ;
111111
112- it ( 'should return the total count of order as 0 for the day' , async ( ) => {
112+ it ( 'should return the total count of order as 0 for the day as no order is placed on that date ' , async ( ) => {
113113 mockingoose ( model ) . toReturn ( [ ] , 'aggregate' ) ;
114114 const res = await countByDate ( date ) ;
115115 expect ( res ) . toBe ( 0 ) ;
@@ -130,7 +130,7 @@ describe('Order daos tests', () => {
130130 } ) . rejects . toThrow ( mockError ) ;
131131 } ) ;
132132
133- it ( 'should return count for the day for a category as 0' , async ( ) => {
133+ it ( 'should return count for the day for a category as 0 as no order was placed for that category on that day ' , async ( ) => {
134134 mockingoose ( model ) . toReturn ( [ ] , 'aggregate' ) ;
135135 const res = await countByDateForCategory ( date , category ) ;
136136 expect ( res ) . toBe ( 0 ) ;
0 commit comments