11// @ts -check
22const { test, expect } = require ( '@playwright/test' ) ;
33import { faker } from '@faker-js/faker' ;
4- const { DateTime } = require ( "luxon" ) ;
4+ // const { DateTime } = require("luxon");
55
66const randomFirstName = faker . name . firstName ( )
77const randomLastName = faker . name . lastName ( )
88const randomNumber = faker . random . numeric ( 4 )
9- const currentDate = DateTime . now ( ) . toFormat ( 'yyyy-MM-dd' )
10- const currentDatePlusFive = DateTime . now ( ) . plus ( { days : 5 } ) . toFormat ( 'yyyy-MM-dd' )
9+ // const currentDate = DateTime.now().toFormat('yyyy-MM-dd')
10+ // const currentDatePlusFive = DateTime.now().plus({ days: 5 }).toFormat('yyyy-MM-dd')
1111
1212test ( 'should be able to create a booking' , async ( { request } ) => {
1313 const response = await request . post ( `/booking` , {
@@ -16,10 +16,10 @@ test('should be able to create a booking', async ({ request }) => {
1616 "lastname" : randomLastName ,
1717 "totalprice" : randomNumber ,
1818 "depositpaid" : true ,
19- "bookingdates" : {
20- "checkin" : currentDate ,
21- "checkout" : currentDatePlusFive
22- } ,
19+ // "bookingdates": {
20+ // "checkin": currentDate,
21+ // "checkout": currentDatePlusFive
22+ // },
2323 "additionalneeds" : "Breakfast"
2424 }
2525 } ) ;
0 commit comments