mirror of
https://github.com/fsolla/teqo.git
synced 2026-12-05 17:03:05 +00:00
style(tests): prettier-format worktree unit spec
This commit is contained in:
parent
1c0648d59a
commit
b61f1ec36a
1 changed files with 6 additions and 4 deletions
|
|
@ -41,9 +41,9 @@ describe('issueCodeAndSubject', () => {
|
||||||
|
|
||||||
describe('branchNameForIssue', () => {
|
describe('branchNameForIssue', () => {
|
||||||
it('builds <code>-<slug> with the repo slugify', () => {
|
it('builds <code>-<slug> with the repo slugify', () => {
|
||||||
expect(
|
expect(branchNameForIssue(issue({ title: 'C15 — FullCalendar em /campanha/agenda' }))).toBe(
|
||||||
branchNameForIssue(issue({ title: 'C15 — FullCalendar em /campanha/agenda' })),
|
'C15-fullcalendar-em-campanha-agenda',
|
||||||
).toBe('C15-fullcalendar-em-campanha-agenda')
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('strips accents from the pt-BR title', () => {
|
it('strips accents from the pt-BR title', () => {
|
||||||
|
|
@ -62,6 +62,8 @@ describe('branchNameForIssue', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('throws when the issue has no code — never invents', () => {
|
it('throws when the issue has no code — never invents', () => {
|
||||||
expect(() => branchNameForIssue(issue({ meta: {}, title: 'Sem código' }))).toThrow(/frontmatter/)
|
expect(() => branchNameForIssue(issue({ meta: {}, title: 'Sem código' }))).toThrow(
|
||||||
|
/frontmatter/,
|
||||||
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue