All files / app/shipping consignment.mock.ts

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22    24x   24x   24x 193x                            
import { Consignment } from '@bigcommerce/checkout-sdk';
 
import { getAddress } from '../address/address.mock';
 
import { getShippingOption } from './shippingOption/shippingMethod.mock';
 
export function getConsignment(): Consignment {
    return {
        id: '55c96cda6f04c',
        selectedShippingOption: getShippingOption(),
        shippingCost: 0,
        handlingCost: 0,
        lineItemIds: [
            '12e11c8f-7dce-4da3-9413-b649533f8bad',
        ],
        shippingAddress: getAddress(),
        availableShippingOptions: [
            getShippingOption(),
        ],
    };
}