add failing test for empty default_branch
Signed-off-by: Zach Hammer <zhammer@seatgeek.com>
This commit is contained in:
@@ -184,6 +184,13 @@ describe('GitlabDiscoveryProcessor', () => {
|
||||
last_activity_at: '2021-08-05T11:03:05.774Z',
|
||||
web_url: 'https://gitlab.fake/3',
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
archived: false,
|
||||
default_branch: undefined, // MISSING DEFAULT BRANCH
|
||||
last_activity_at: '2021-08-05T11:03:05.774Z',
|
||||
web_url: 'https://gitlab.fake/4',
|
||||
},
|
||||
],
|
||||
};
|
||||
default:
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
export type GitLabProject = {
|
||||
id: number;
|
||||
default_branch: string;
|
||||
default_branch?: string;
|
||||
archived: boolean;
|
||||
last_activity_at: string;
|
||||
web_url: string;
|
||||
|
||||
Reference in New Issue
Block a user