add a test for the new getter

This commit is contained in:
Martin Cech
2022-12-23 11:33:42 -08:00
parent 266786d468
commit b5b010a5da
2 changed files with 13 additions and 0 deletions
@@ -7,6 +7,9 @@
"active": true,
"created_time": "2020-02-24T15:59:18.122103",
"modified_time": "2020-02-24T15:59:20.428594",
"output_datasets_ids": [
"4e9e0c7225b0bb81"
],
"target": "http://52e496b945151ee8-be8a5bee5d5849a5b4e035b51305256e.interactivetoolentrypoint.interactivetool.localhost:8080/ipython/lab"
},
{
@@ -17,6 +20,9 @@
"active": true,
"created_time": "2020-01-24T15:59:22.406480",
"modified_time": "2020-02-24T15:59:24.757453",
"output_datasets_ids": [
"ac59b4df0950f761"
],
"target": "http://b887d74393f85b6d-b1fd3f42331a49c1b3d8a4d1b27240b8.interactivetoolentrypoint.interactivetool.localhost:8080/loginapikey/oleg"
}
]
@@ -40,6 +40,7 @@ describe("stores/EntryPointStore", () => {
name: "Oh there you go, bringing class into it again.",
created_time: "2020-01-24T15:59:22.406480",
modified_time: "2020-02-24T15:59:24.757453",
output_datasets_ids: ["4e9e0c7225b0bb81"],
target: "http://b887d74393f85b6d-b1fd3f42331a49c1b3d8a4d1b27240b8.interactivetoolentrypoint.interactivetool.localhost:8080/loginapikey/oleg",
},
];
@@ -61,4 +62,10 @@ describe("stores/EntryPointStore", () => {
expect(entryPointForJob[0].id === "52e496b945151ee8").toBeTruthy();
expect(entryPointForJob[0].active).toBeTruthy();
});
it("retrieves entry points for a given hda", async () => {
const entryPointForHda = store.entryPointsForHda("4e9e0c7225b0bb81");
expect(entryPointForHda.length).toBe(1);
expect(entryPointForHda[0].id === "52e496b945151ee8").toBeTruthy();
expect(entryPointForHda[0].active).toBeTruthy();
});
});