Skip to content

Commit ed65ccb

Browse files
committed
Update specs
1 parent 8bfafd2 commit ed65ccb

File tree

4 files changed

+0
-273
lines changed

4 files changed

+0
-273
lines changed

src/model/CreateEthereumEstimateRequest.js

-75
This file was deleted.

src/model/CreateShippingEstimateRequest.js

-79
This file was deleted.

src/model/CreateVehicleEstimateRequest.js

-72
This file was deleted.

test/integration/estimates.test.js

-47
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,6 @@ describe('Estimates Integration', function () {
3434
expect(estimate2.mass_g).to.be.greaterThan(estimate1.mass_g);
3535
});
3636

37-
it('supports creating shipping estimates', async function () {
38-
const createEstimateResponse = await patch.estimates.createShippingEstimate(
39-
{
40-
distance_m: 100000,
41-
transportation_method: 'rail',
42-
package_mass_g: 50000,
43-
create_order: false
44-
}
45-
);
46-
const estimate = createEstimateResponse.data;
47-
48-
expect(estimate.type).to.be.eq('ecommerce');
49-
expect(estimate.mass_g).to.be.above(0);
50-
expect(estimate.production).to.be.eq(false);
51-
expect(estimate.order).to.be.eq(null);
52-
});
53-
5437
it('supports creating ecommerce estimates', async function () {
5538
const createEstimateResponse =
5639
await patch.estimates.createEcommerceEstimate({
@@ -67,22 +50,6 @@ describe('Estimates Integration', function () {
6750
expect(estimate.order).to.be.eq(null);
6851
});
6952

70-
it('supports creating vehicle estimates without an order', async function () {
71-
const createEstimateResponse = await patch.estimates.createVehicleEstimate({
72-
distance_m: 100000,
73-
make: 'Toyota',
74-
model: 'Corolla',
75-
year: 2005,
76-
create_order: false
77-
});
78-
const estimate = createEstimateResponse.data;
79-
80-
expect(estimate.type).to.be.eq('vehicle');
81-
expect(estimate.mass_g).to.be.above(0);
82-
expect(estimate.production).to.be.eq(false);
83-
expect(estimate.order).to.be.eq(null);
84-
});
85-
8653
it('supports creating bitcoin estimates without parameters', async function () {
8754
const { data: estimate } = await patch.estimates.createBitcoinEstimate();
8855

@@ -124,20 +91,6 @@ describe('Estimates Integration', function () {
12491
expect(estimate1.mass_g).to.be.below(estimate2.mass_g);
12592
});
12693

127-
it('supports creating ethereum estimates with a gas value', async function () {
128-
const createEstimateResponse = await patch.estimates.createEthereumEstimate(
129-
{
130-
gas_used: 1000
131-
}
132-
);
133-
134-
const estimate = createEstimateResponse.data;
135-
136-
expect(estimate.type).to.be.eq('ethereum');
137-
expect(estimate.mass_g).to.be.above(0);
138-
expect(estimate.production).to.be.eq(false);
139-
});
140-
14194
it('supports creating hotel estimates', async function () {
14295
const createEstimateResponse = await patch.estimates.createHotelEstimate({
14396
country_code: 'US',

0 commit comments

Comments
 (0)