File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ const patch = Patch(process.env.SANDBOX_API_KEY);
55describe ( 'Estimates Integration' , function ( ) {
66 it ( 'supports create, retrieve and list' , async function ( ) {
77 const createEstimateResponse = await patch . estimates . createMassEstimate ( {
8- mass_g : 100
8+ mass_g : 100 ,
9+ create_order : true
910 } ) ;
1011 const estimateId = createEstimateResponse . data . id ;
1112
@@ -23,7 +24,8 @@ describe('Estimates Integration', function () {
2324
2425 it ( 'supports creating flight estimates with distance' , async function ( ) {
2526 const createEstimateResponse = await patch . estimates . createFlightEstimate ( {
26- distance_m : 1000
27+ distance_m : 1000 ,
28+ create_order : true
2729 } ) ;
2830 const estimate = createEstimateResponse . data ;
2931
@@ -46,7 +48,7 @@ describe('Estimates Integration', function () {
4648 expect ( estimate2 . mass_g ) . to . be . greaterThan ( estimate1 . mass_g ) ;
4749 } ) ;
4850
49- it ( 'supports creating shipping estimates without an order ' , async function ( ) {
51+ it ( 'supports creating shipping estimates' , async function ( ) {
5052 const createEstimateResponse = await patch . estimates . createShippingEstimate (
5153 {
5254 distance_m : 100000 ,
You can’t perform that action at this time.
0 commit comments