We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5274ba commit d785027Copy full SHA for d785027
packages/backend/src/gitlab.test.ts
@@ -56,3 +56,15 @@ test('shouldExcludeProject returns true when the project is excluded by exclude.
56
}
57
})).toBe(true)
58
});
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