Skip to content

Commit 2beea05

Browse files
committed
fix(unit-tests): updated unit tests
1 parent 70e1ecc commit 2beea05

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/core/guards/is-project.guard.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ describe('isProjectGuard', () => {
142142

143143
it('should navigate and return true for Projects with parentId', (done) => {
144144
const resource = createMockResource({
145-
id: 'parent-id',
145+
id: 'parent-id/child-id',
146146
type: CurrentResourceType.Projects,
147147
parentId: 'parent-id',
148148
});
@@ -241,7 +241,7 @@ describe('isProjectGuard', () => {
241241

242242
it('should navigate and return true for Preprints with parentId', (done) => {
243243
const resource = createMockResource({
244-
id: 'parent-id',
244+
id: 'parent-id/child-id',
245245
type: CurrentResourceType.Preprints,
246246
parentId: 'parent-id',
247247
});

src/app/core/guards/is-registry.guard.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ describe('isRegistryGuard', () => {
142142

143143
it('should navigate and return true for Registrations with parentId', (done) => {
144144
const resource = createMockResource({
145-
id: 'parent-id',
145+
id: 'parent-id/child-id',
146146
type: CurrentResourceType.Registrations,
147147
parentId: 'parent-id',
148148
});
@@ -241,7 +241,7 @@ describe('isRegistryGuard', () => {
241241

242242
it('should navigate and return true for Preprints with parentId', (done) => {
243243
const resource = createMockResource({
244-
id: 'parent-id',
244+
id: 'parent-id/child-id',
245245
type: CurrentResourceType.Preprints,
246246
parentId: 'parent-id',
247247
});

0 commit comments

Comments
 (0)