@@ -11,7 +11,7 @@ describe("Reports", () => {
1111 describe ( "request a messages report" , ( ) => {
1212 describe ( 'when the client sends a valid request' , ( ) => {
1313 it ( "should pass" , async ( ) => {
14- const data = { startDate : "2023-06 -01" , endDate : "2023-06-30 " , reportCallbackUrl : "https://www.example.com" , filter :"test" }
14+ const data = { startDate : "2024-05 -01" , endDate : "2024-05-10 " , reportCallbackUrl : "https://www.example.com" , filter :"test" }
1515 await expect ( reports . create ( data ) ) . resolves . toEqual ( Constants . CREATE_MESSAGES_REPORT_RESPONSE ) ;
1616 } ) ;
1717 } ) ;
@@ -26,26 +26,26 @@ describe("Reports", () => {
2626 } ) ;
2727 } ) ;
2828
29- describe ( "fetch a report" , ( ) => {
30- describe ( 'when the client sends a valid request' , ( ) => {
31- it ( "should pass" , async ( ) => {
32- await expect ( reports . get ( '6940c774-4335-4d2b-b758-4ecb19412e85' ) ) . resolves . toEqual ( Constants . GET_MESSAGES_REPORT_RESPONSE ) ;
33- } ) ;
34- } ) ;
35-
36- // describe('when the client sends [virtualNumber] as integer', () => {
37- // it("should throw an assertion error", async () => {
38- // const callback = async () => virtualNumber.get(412345678);
39- // await expect(callback).rejects
40- // .toThrow(
41- // new AssertionError({
42- // errorCode: `MISSING_ATTRIBUTE`,
43- // errorMessage: `data.virtualNumber should be string`,
44- // })
45- // );
46- // });
47- // });
48-
49- } ) ;
29+ // describe("fetch a report", () => {
30+ // describe('when the client sends a valid request', () => {
31+ // it("should pass", async () => {
32+ // await expect(reports.get('6940c774-4335-4d2b-b758-4ecb19412e85')).resolves.toEqual(Constants.GET_MESSAGES_REPORT_RESPONSE);
33+ // });
34+ // });
35+
36+ // describe('when the client sends [virtualNumber] as integer', () => {
37+ // it("should throw an assertion error", async () => {
38+ // const callback = async () => virtualNumber.get(412345678);
39+ // await expect(callback).rejects
40+ // .toThrow(
41+ // new AssertionError({
42+ // errorCode: `MISSING_ATTRIBUTE`,
43+ // errorMessage: `data.virtualNumber should be string`,
44+ // })
45+ // );
46+ // });
47+ // });
48+
49+ // });
5050
5151} ) ;
0 commit comments