Feat(medusajs) Allow to pass custom headers (#1009)

* Feat(medusajs) Allow to pass custom headers

* fix: axios exprexted output

* fix: integration test cart

* refactor: Update types object > Record<string, any>

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
This commit is contained in:
Adrien de Peretti
2022-02-17 16:50:03 +01:00
committed by GitHub
parent 449e666428
commit 22d387dcce
45 changed files with 572 additions and 433 deletions

View File

@@ -150,7 +150,7 @@ describe("/store/carts", () => {
const cart = getRes.data.cart
expect(cart.context).toEqual({
ip: "::ffff:127.0.0.1",
user_agent: "axios/0.21.1",
user_agent: expect.stringContaining("axios/0.21."),
test_id: "test",
})
})