mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 10:34:15 +00:00
Fixing an issue where the relationship query did a fuzzy query with UUID's
This commit is contained in:
@@ -6,13 +6,13 @@ describe('Relation Query Utils', () => {
|
||||
describe('getQueryByRelations', () => {
|
||||
it('Should return the correct query based on relationtype and uuid', () => {
|
||||
const result = getQueryByRelations(relationtype, itemUUID);
|
||||
expect(result).toEqual('query=relation.isAuthorOfPublication:a7939af0-36ad-430d-af09-7be8b0a4dadd');
|
||||
expect(result).toEqual('query=relation.isAuthorOfPublication:"a7939af0-36ad-430d-af09-7be8b0a4dadd"');
|
||||
});
|
||||
});
|
||||
describe('getFilterByRelation', () => {
|
||||
it('Should return the correct query based on relationtype and uuid', () => {
|
||||
const result = getFilterByRelation(relationtype, itemUUID);
|
||||
expect(result).toEqual('f.isAuthorOfPublication=a7939af0-36ad-430d-af09-7be8b0a4dadd');
|
||||
expect(result).toEqual('f.isAuthorOfPublication=a7939af0-36ad-430d-af09-7be8b0a4dadd,equals');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user