[ARVADOS-WORKBENCH2] updated: 1.4.1-259-g48be4482
Git user
git at public.arvados.org
Sun Feb 2 18:31:37 UTC 2020
Summary of changes:
src/services/favorite-service/favorite-service.test.ts | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
via 48be4482ec29aa092c250d77862d8dbd77e70f1b (commit)
from 920bf74753465ab51a8bfe5462f0e687b8fe2055 (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 48be4482ec29aa092c250d77862d8dbd77e70f1b
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Sun Feb 2 13:31:21 2020 -0500
16108: Fix tests
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/src/services/favorite-service/favorite-service.test.ts b/src/services/favorite-service/favorite-service.test.ts
index 566b4cbc..e4cf23ef 100644
--- a/src/services/favorite-service/favorite-service.test.ts
+++ b/src/services/favorite-service/favorite-service.test.ts
@@ -39,7 +39,7 @@ describe("FavoriteService", () => {
it("unmarks resource as favorite", async () => {
const list = jest.fn().mockReturnValue(Promise.resolve({ items: [{ uuid: "linkUuid" }] }));
const filters = new FilterBuilder()
- .addEqual('tail_uuid', "userUuid")
+ .addEqual('owner_uuid', "userUuid")
.addEqual('head_uuid', "resourceUuid")
.addEqual('link_class', LinkClass.STAR);
linkService.list = list;
@@ -56,7 +56,7 @@ describe("FavoriteService", () => {
it("lists favorite resources", async () => {
const list = jest.fn().mockReturnValue(Promise.resolve({ items: [{ headUuid: "headUuid" }] }));
const listFilters = new FilterBuilder()
- .addEqual('tail_uuid', "userUuid")
+ .addEqual('owner_uuid', "userUuid")
.addEqual('link_class', LinkClass.STAR);
const contents = jest.fn().mockReturnValue(Promise.resolve({ items: [{ uuid: "resourceUuid" }] }));
const contentFilters = new FilterBuilder().addIn('uuid', ["headUuid"]);
@@ -76,7 +76,7 @@ describe("FavoriteService", () => {
const list = jest.fn().mockReturnValue(Promise.resolve({ items: [{ headUuid: "foo" }] }));
const listFilters = new FilterBuilder()
.addIn("head_uuid", ["foo", "oof"])
- .addEqual("tail_uuid", "userUuid")
+ .addEqual("owner_uuid", "userUuid")
.addEqual("link_class", LinkClass.STAR);
linkService.list = list;
const favoriteService = new FavoriteService(linkService, groupService);
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list