mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
49 lines
1.4 KiB
TypeScript
49 lines
1.4 KiB
TypeScript
import nock from "nock";
|
|
|
|
nock("https://refine-example-storefront.herokuapp.com:443", {
|
|
encodedQueryParams: true,
|
|
})
|
|
.delete("/store/customers/me/addresses/addr_01G8ZK9FMJG86YBDWXQ2R4FSJF")
|
|
.reply(
|
|
200,
|
|
{
|
|
customer: {
|
|
id: "cus_01G8GCWQX1EN8CF7PX2W3HEGYM",
|
|
created_at: "2022-07-21T12:49:32.059Z",
|
|
updated_at: "2022-07-27T10:14:41.048Z",
|
|
deleted_at: null,
|
|
email: "melih@refine.dev",
|
|
first_name: "John",
|
|
last_name: "Doe",
|
|
billing_address_id: null,
|
|
phone: null,
|
|
has_account: true,
|
|
metadata: null,
|
|
shipping_addresses: [],
|
|
billing_address: null,
|
|
},
|
|
},
|
|
[
|
|
"Server",
|
|
"Cowboy",
|
|
"Connection",
|
|
"close",
|
|
"X-Powered-By",
|
|
"Express",
|
|
"Vary",
|
|
"Origin",
|
|
"Access-Control-Allow-Credentials",
|
|
"true",
|
|
"Content-Type",
|
|
"application/json; charset=utf-8",
|
|
"Content-Length",
|
|
"336",
|
|
"Etag",
|
|
'W/"150-tZ/M/hmxhQUg6cHFU0qiLdiKlcc"',
|
|
"Date",
|
|
"Wed, 27 Jul 2022 10:52:07 GMT",
|
|
"Via",
|
|
"1.1 vegur",
|
|
],
|
|
);
|