* 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>
26 lines
652 B
JavaScript
26 lines
652 B
JavaScript
import { test, given } from 'sazerac'
|
|
import { GithubRelease } from './github-release.service.js'
|
|
|
|
describe('GithubRelease', function () {
|
|
test(GithubRelease.transform, () => {
|
|
given({ name: null, tag_name: '0.1.2', prerelease: true }, 'tag').expect({
|
|
version: '0.1.2',
|
|
isPrerelease: true,
|
|
})
|
|
given(
|
|
{ name: null, tag_name: '0.1.3', prerelease: true },
|
|
'release',
|
|
).expect({
|
|
version: '0.1.3',
|
|
isPrerelease: true,
|
|
})
|
|
given(
|
|
{ name: 'fun name', tag_name: '1.0.0', prerelease: false },
|
|
'release',
|
|
).expect({
|
|
version: 'fun name',
|
|
isPrerelease: false,
|
|
})
|
|
})
|
|
})
|