Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
  • Loading branch information
SuZhou-Joe committed Mar 4, 2024
1 parent a094a12 commit 24d52ee
Showing 1 changed file with 22 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,54 +336,36 @@ describe('resolveImportErrors', () => {
workspaces: ['foo'],
});
expect(httpMock.post.mock.calls).toMatchInlineSnapshot(`
[MockFunction] {
"calls": Array [
Array [
"/api/saved_objects/_resolve_import_errors",
Object {
"body": FormData {},
"headers": Object {
"Content-Type": undefined,
},
"query": Object {
"workspaces": Array [
"foo",
],
},
Array [
Array [
"/api/saved_objects/_resolve_import_errors",
Object {
"body": FormData {},
"headers": Object {
"Content-Type": undefined,
},
],
Array [
"/api/saved_objects/_resolve_import_errors",
Object {
"body": FormData {},
"headers": Object {
"Content-Type": undefined,
},
"query": Object {
"workspaces": Array [
"foo",
],
},
"query": Object {
"workspaces": Array [
"foo",
],
},
],
},
],
"results": Array [
Array [
"/api/saved_objects/_resolve_import_errors",
Object {
"type": "return",
"value": Promise {
Symbol(async_id_symbol): 8933,
Symbol(trigger_async_id_symbol): 8919,
"body": FormData {},
"headers": Object {
"Content-Type": undefined,
},
},
Object {
"type": "return",
"value": Promise {
Symbol(async_id_symbol): 8941,
Symbol(trigger_async_id_symbol): 8938,
"query": Object {
"workspaces": Array [
"foo",
],
},
},
],
}
]
`);
});
});

0 comments on commit 24d52ee

Please sign in to comment.