Skip to content

Commit d785027

Browse files
feedback
1 parent e5274ba commit d785027

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/backend/src/gitlab.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,15 @@ test('shouldExcludeProject returns true when the project is excluded by exclude.
5656
}
5757
})).toBe(true)
5858
});
59+
60+
test('shouldExcludeProject returns false when exclude.userOwnedProjects is true but project is group-owned.', () => {
61+
const project = {
62+
path_with_namespace: 'test/project',
63+
namespace: { kind: 'group' },
64+
} as unknown as ProjectSchema;
65+
66+
expect(shouldExcludeProject({
67+
project,
68+
exclude: { userOwnedProjects: true },
69+
})).toBe(false);
70+
});

0 commit comments

Comments
 (0)