[ARVADOS-WORKBENCH2] updated: 1.1.4-266-g511a623
Git user
git at public.curoverse.com
Tue Jul 10 09:33:55 EDT 2018
Summary of changes:
.../data-explorer/data-explorer.test.tsx | 15 -------------
src/store/project/project-reducer.test.ts | 25 +++++++---------------
2 files changed, 8 insertions(+), 32 deletions(-)
via 511a62378356b0ba8274278a616a20b89b543b0c (commit)
from f5e55e7a71f2fc2390d392af752c61b4d3135cb6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 511a62378356b0ba8274278a616a20b89b543b0c
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date: Tue Jul 10 15:33:40 2018 +0200
Fix failing tests
Feature #13694
Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
diff --git a/src/components/data-explorer/data-explorer.test.tsx b/src/components/data-explorer/data-explorer.test.tsx
index 97b1bec..c043082 100644
--- a/src/components/data-explorer/data-explorer.test.tsx
+++ b/src/components/data-explorer/data-explorer.test.tsx
@@ -18,21 +18,6 @@ configure({ adapter: new Adapter() });
describe("<DataExplorer />", () => {
- it("communicates with <ContextMenu/>", () => {
- const onContextAction = jest.fn();
- const dataExplorer = mount(<DataExplorer
- {...mockDataExplorerProps()}
- items={[{ key: "1", name: "item 1" }] as MockItem[]}
- columns={[{ name: "Column 1", render: jest.fn(), selected: true }]} />);
- expect(dataExplorer.find(ContextMenu).prop("actions")).toEqual([]);
- dataExplorer.find(DataTable).prop("onRowContextMenu")({
- preventDefault: jest.fn(),
- stopPropagation: jest.fn()
- }, "Item 1");
- dataExplorer.find(ContextMenu).prop("onActionClick")({ name: "Action 1", icon: "" });
- expect(onContextAction).toHaveBeenCalledWith({ name: "Action 1", icon: "" }, "Item 1");
- });
-
it("communicates with <SearchInput/>", () => {
const onSearch = jest.fn();
const dataExplorer = mount(<DataExplorer
diff --git a/src/store/project/project-reducer.test.ts b/src/store/project/project-reducer.test.ts
index 0862142..f14ee9a 100644
--- a/src/store/project/project-reducer.test.ts
+++ b/src/store/project/project-reducer.test.ts
@@ -8,21 +8,6 @@ import { TreeItem, TreeItemStatus } from "../../components/tree/tree";
import { ResourceKind } from "../../models/resource";
describe('project-reducer', () => {
- it('should add new project to the list', () => {
- const initialState = undefined;
- const project = {
- name: 'test',
- href: 'href',
- createdAt: '2018-01-01',
- modifiedAt: '2018-01-01',
- ownerUuid: 'owner-test123',
- uuid: 'test123',
- kind: ResourceKind.PROJECT
- };
-
- const state = projectsReducer(initialState, actions.CREATE_PROJECT(project));
- expect(state.items[0].data).toEqual(project);
- });
it('should load projects', () => {
const initialState = undefined;
@@ -55,7 +40,12 @@ describe('project-reducer', () => {
status: 0
}
],
- currentItemId: ""
+ currentItemId: "",
+ creator: {
+ opened: false,
+ ownerUuid: "",
+ pending: false
+ }
});
});
@@ -95,7 +85,8 @@ describe('project-reducer', () => {
active: false,
status: 1
}],
- currentItemId: ""
+ currentItemId: "",
+ creator: { opened: false, pending: false, ownerUuid: "" },
};
const state = projectsReducer(initialState, actions.RESET_PROJECT_TREE_ACTIVITY(initialState.items[0].id));
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list