mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix: events sorting with compact=true is broken (#2141)
* fix: use default sorting for <Events/> as on "timeline" (fresh on top) Signed-off-by: Roman <ixrock@gmail.com> * responding to comments Signed-off-by: Roman <ixrock@gmail.com> * convert comments to jsdoc (table.tsx) Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
1 parent
4d6cba4741
commit
5029196d15
8 files changed
+101
-61
No files matched your search
@@ -4,9 +4,9 @@ jest.mock("../../api/endpoints");
|
||||
import { ReplicaSetScaleDialog } from "./replicaset-scale-dialog";
|
||||
import { render, waitFor, fireEvent } from "@testing-library/react";
|
||||
import React from "react";
|
||||
import { replicaSetApi } from "../../api/endpoints/replica-set.api";
|
||||
import { ReplicaSet, replicaSetApi } from "../../api/endpoints/replica-set.api";
|
||||
|
||||
const dummyReplicaSet = {
|
||||
const dummyReplicaSet: ReplicaSet = {
|
||||
apiVersion: "v1",
|
||||
kind: "dummy",
|
||||
metadata: {
|
||||
@@ -67,7 +67,6 @@ const dummyReplicaSet = {
|
||||
getCurrent: jest.fn(),
|
||||
getReady: jest.fn(),
|
||||
getImages: jest.fn(),
|
||||
getReplicas: jest.fn(),
|
||||
getSelectors: jest.fn(),
|
||||
getTemplateLabels: jest.fn(),
|
||||
getAffinity: jest.fn(),
|
||||
@@ -79,6 +78,7 @@ const dummyReplicaSet = {
|
||||
getName: jest.fn(),
|
||||
getNs: jest.fn(),
|
||||
getAge: jest.fn(),
|
||||
getTimeDiffFromNow: jest.fn(),
|
||||
getFinalizers: jest.fn(),
|
||||
getLabels: jest.fn(),
|
||||
getAnnotations: jest.fn(),
|
||||
|
||||
Reference in new issue
Block a user