Skip to content

Commit 6068180

Browse files
authored
Future-proof the tests (#45)
1 parent dba8d80 commit 6068180

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/integration/estimates.test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ const patch = Patch(process.env.SANDBOX_API_KEY);
55
describe('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,

0 commit comments

Comments
 (0)