* chore(deps-dev): bump prettier from 2.8.8 to 3.0.0 Bumps [prettier](https://github.com/prettier/prettier) from 2.8.8 to 3.0.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.0.0) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * reformat all the things (prettier 3) * update tests to await calls to prettier.format() --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: chris48s <git@chris-shaw.dev>
34 lines
836 B
JavaScript
34 lines
836 B
JavaScript
import { createServiceTester } from '../tester.js'
|
|
export const t = await createServiceTester()
|
|
|
|
// Mocked response rather than real data as old builds are deleted after some time.
|
|
t.create('Valid Build')
|
|
.get('/nock/nock/master/token.json')
|
|
.intercept(nock =>
|
|
nock('https://api.appcenter.ms/v0.1/apps/')
|
|
.get('/nock/nock/branches/master/builds')
|
|
.reply(200, [
|
|
{
|
|
result: 'succeeded',
|
|
},
|
|
]),
|
|
)
|
|
.expectBadge({
|
|
label: 'build',
|
|
message: 'passing',
|
|
})
|
|
|
|
t.create('Invalid Branch')
|
|
.get('/jct/test-1/invalid/8c9b519a0750095b9fea3d40b2645d8a0c24a2f3.json')
|
|
.expectBadge({
|
|
label: 'build',
|
|
message: 'no builds found',
|
|
})
|
|
|
|
t.create('Invalid API Token')
|
|
.get('/jct/test-1/master/invalid.json')
|
|
.expectBadge({
|
|
label: 'build',
|
|
message: 'invalid token',
|
|
})
|