fix [tas] private project test (#8514)

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
chris48s
2022-11-03 20:46:16 +00:00
committed by GitHub
parent 55d711c39d
commit b3a9dd7119

View File

@@ -45,6 +45,16 @@ t.create('Test status on project that does not exist')
t.create('Test status on private project')
.get('/github/tasdemo/nexe-private.json')
.intercept(nock =>
nock('https://api.tas.lambdatest.com')
.get('/repo/badge')
.query({
git_provider: 'github',
org: 'tasdemo',
repo: 'nexe-private',
})
.reply(401)
)
.expectBadge({
label: 'tests',
message: 'private project not supported',