mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
cc2f8fe756
commit
735ef219f1
1 file changed
+3
-3
@@ -248,15 +248,15 @@ describe("KubeApi", () => {
|
||||
(fetch as any).mockResponse(async (request: Request) => {
|
||||
expect(request.method).toEqual("PATCH");
|
||||
expect(request.headers.get("content-type")).toMatch("merge-patch");
|
||||
expect(request.body.toString()).toEqual(JSON.stringify({ metadata: { annotations: { provisioned: "true" } }}));
|
||||
expect(request.body.toString()).toEqual(JSON.stringify({ metadata: { annotations: { provisioned: "true" }}}));
|
||||
|
||||
return {};
|
||||
});
|
||||
|
||||
await api.patch(
|
||||
{ name: "test", namespace: "default" },
|
||||
{ metadata: { annotations: { provisioned: "true" } } },
|
||||
"merge"
|
||||
{ metadata: { annotations: { provisioned: "true" }}},
|
||||
"merge",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user