[ARVADOS-WORKBENCH2] updated: 1.1.4-610-gc956bd9
Git user
git at public.curoverse.com
Fri Aug 17 03:18:23 EDT 2018
Summary of changes:
src/common/api/order-builder.test.ts | 2 +-
src/services/favorite-service/favorite-service.test.ts | 8 ++++----
src/services/project-service/project-service.test.ts | 5 +++--
3 files changed, 8 insertions(+), 7 deletions(-)
via c956bd958d3fb90ce51d758fb99d1d88cf589062 (commit)
from b13fa1f0403b854ccb4b0a2f75323984581bf877 (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 c956bd958d3fb90ce51d758fb99d1d88cf589062
Author: Daniel Kos <daniel.kos at contractors.roche.com>
Date: Fri Aug 17 09:18:21 2018 +0200
Fix tests passing
No issue #
Arvados-DCO-1.1-Signed-off-by: Daniel Kos <daniel.kos at contractors.roche.com>
diff --git a/src/common/api/order-builder.test.ts b/src/common/api/order-builder.test.ts
index 56b66f3..f56e063 100644
--- a/src/common/api/order-builder.test.ts
+++ b/src/common/api/order-builder.test.ts
@@ -10,6 +10,6 @@ describe("OrderBuilder", () => {
.addAsc("kind")
.addDesc("modifiedAt")
.getOrder();
- expect(order).toEqual(["kind asc", "modified_at desc"]);
+ expect(order).toEqual("kind asc,modified_at desc");
});
});
diff --git a/src/services/favorite-service/favorite-service.test.ts b/src/services/favorite-service/favorite-service.test.ts
index 47211fe..d4bf9ac 100644
--- a/src/services/favorite-service/favorite-service.test.ts
+++ b/src/services/favorite-service/favorite-service.test.ts
@@ -48,7 +48,7 @@ describe("FavoriteService", () => {
const newFavorite = await favoriteService.delete({ userUuid: "userUuid", resourceUuid: "resourceUuid" });
- expect(list.mock.calls[0][0].filters.getFilters()).toEqual(filters.getFilters());
+ expect(list.mock.calls[0][0].filters).toEqual(filters.getFilters());
expect(linkService.delete).toHaveBeenCalledWith("linkUuid");
expect(newFavorite[0].uuid).toEqual("linkUuid");
});
@@ -66,9 +66,9 @@ describe("FavoriteService", () => {
const favorites = await favoriteService.list("userUuid");
- expect(list.mock.calls[0][0].filters.getFilters()).toEqual(listFilters.getFilters());
+ expect(list.mock.calls[0][0].filters).toEqual(listFilters.getFilters());
expect(contents.mock.calls[0][0]).toEqual("userUuid");
- expect(contents.mock.calls[0][1].filters.getFilters()).toEqual(contentFilters.getFilters());
+ expect(contents.mock.calls[0][1].filters).toEqual(contentFilters.getFilters());
expect(favorites).toEqual({ items: [{ uuid: "resourceUuid" }] });
});
@@ -83,7 +83,7 @@ describe("FavoriteService", () => {
const favorites = await favoriteService.checkPresenceInFavorites("userUuid", ["foo", "oof"]);
- expect(list.mock.calls[0][0].filters.getFilters()).toEqual(listFilters.getFilters());
+ expect(list.mock.calls[0][0].filters).toEqual(listFilters.getFilters());
expect(favorites).toEqual({ foo: true, oof: false });
});
diff --git a/src/services/project-service/project-service.test.ts b/src/services/project-service/project-service.test.ts
index 9306346..a717736 100644
--- a/src/services/project-service/project-service.test.ts
+++ b/src/services/project-service/project-service.test.ts
@@ -25,9 +25,10 @@ describe("CommonResourceService", () => {
const resource = await projectService.list();
expect(axiosInstance.get).toHaveBeenCalledWith("/groups/", {
params: {
- filters: new FilterBuilder()
+ filters: "[" + new FilterBuilder()
.addEqual("groupClass", "project")
- .getFilters()
+ .getFilters() + "]",
+ order: undefined
}
});
});
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list