fix: add integration test

This commit is contained in:
Sebastian Rindom
2021-10-05 12:36:43 +02:00
parent 5a67d1e7fd
commit 38813ec66f
7 changed files with 172 additions and 79 deletions

View File

@@ -1,5 +1,19 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`/admin/auth creates admin session correctly 1`] = `
Object {
"api_token": "test_token",
"created_at": Any<String>,
"deleted_at": null,
"email": "admin@medusa.js",
"first_name": null,
"id": "admin_user",
"last_name": null,
"metadata": null,
"updated_at": Any<String>,
}
`;
exports[`/admin/discounts creates admin session correctly 1`] = `
Object {
"api_token": "test_token",
@@ -13,4 +27,3 @@ Object {
"updated_at": Any<String>,
}
`;