add failing test for empty default_branch

Signed-off-by: Zach Hammer <zhammer@seatgeek.com>
This commit is contained in:
Zach Hammer
2021-12-28 18:53:54 -05:00
parent 9120f5351d
commit 3c013ef065
2 changed files with 8 additions and 1 deletions
@@ -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;