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);
5
5
describe ( 'Estimates Integration' , function ( ) {
6
6
it ( 'supports create, retrieve and list' , async function ( ) {
7
7
const createEstimateResponse = await patch . estimates . createMassEstimate ( {
8
- mass_g : 100
8
+ mass_g : 100 ,
9
+ create_order : true
9
10
} ) ;
10
11
const estimateId = createEstimateResponse . data . id ;
11
12
@@ -23,7 +24,8 @@ describe('Estimates Integration', function () {
23
24
24
25
it ( 'supports creating flight estimates with distance' , async function ( ) {
25
26
const createEstimateResponse = await patch . estimates . createFlightEstimate ( {
26
- distance_m : 1000
27
+ distance_m : 1000 ,
28
+ create_order : true
27
29
} ) ;
28
30
const estimate = createEstimateResponse . data ;
29
31
@@ -46,7 +48,7 @@ describe('Estimates Integration', function () {
46
48
expect ( estimate2 . mass_g ) . to . be . greaterThan ( estimate1 . mass_g ) ;
47
49
} ) ;
48
50
49
- it ( 'supports creating shipping estimates without an order ' , async function ( ) {
51
+ it ( 'supports creating shipping estimates' , async function ( ) {
50
52
const createEstimateResponse = await patch . estimates . createShippingEstimate (
51
53
{
52
54
distance_m : 100000 ,
You can’t perform that action at this time.
0 commit comments