mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Simplify requestPatchKubeResource impl
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
b90e04e02d
commit
bc149f0627
3 files changed
+22
-28
No files matched your search
@@ -227,7 +227,7 @@ metadata:
|
||||
|
||||
it("calls for save with just the adding version label", () => {
|
||||
expect(requestPatchKubeResourceMock).toHaveBeenCalledWith(
|
||||
someNamespace,
|
||||
"/apis/some-api-version/namespaces/some-uid",
|
||||
[{
|
||||
op: "add",
|
||||
path: "/metadata/labels",
|
||||
@@ -527,7 +527,7 @@ metadata:
|
||||
|
||||
it("calls for save with changed configuration", () => {
|
||||
expect(requestPatchKubeResourceMock).toHaveBeenCalledWith(
|
||||
someNamespace,
|
||||
"/apis/some-api-version/namespaces/some-uid",
|
||||
[
|
||||
{
|
||||
op: "remove",
|
||||
@@ -594,7 +594,7 @@ metadata:
|
||||
fireEvent.click(saveButton);
|
||||
|
||||
expect(requestPatchKubeResourceMock).toHaveBeenCalledWith(
|
||||
someNamespace,
|
||||
"/apis/some-api-version/namespaces/some-uid",
|
||||
[
|
||||
{
|
||||
op: "add",
|
||||
@@ -782,7 +782,7 @@ metadata:
|
||||
fireEvent.click(saveButton);
|
||||
|
||||
expect(requestPatchKubeResourceMock).toHaveBeenCalledWith(
|
||||
someOtherNamespace,
|
||||
"/apis/some-api-version/namespaces/some-other-uid",
|
||||
[{
|
||||
op: "add",
|
||||
path: "/metadata/labels",
|
||||
@@ -855,7 +855,7 @@ metadata:
|
||||
fireEvent.click(saveButton);
|
||||
|
||||
expect(requestPatchKubeResourceMock).toHaveBeenCalledWith(
|
||||
someNamespace,
|
||||
"/apis/some-api-version/namespaces/some-uid",
|
||||
[ {
|
||||
op: "add",
|
||||
path: "/metadata/labels",
|
||||
|
||||
Reference in new issue
Block a user