Skip to content

Commit 01a658c

Browse files
fixup!: remove "bad" test-case
1 parent 69779f0 commit 01a658c

1 file changed

Lines changed: 6 additions & 29 deletions

File tree

test/rules/line-length.js

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -130,38 +130,15 @@ https://${'very-'.repeat(80)}-long-url.org/
130130
})
131131

132132
t.test('Co-author lines', (tt) => {
133-
const sha = 'f1496de5a7d5474e39eafaafe6f79befe5883a5b'
134-
const author = {
135-
name: 'Jacob Smith',
136-
137-
date: '2025-12-22T09:40:42Z'
138-
}
139-
140133
const v = new Validator()
141-
const overlongMessage = `fixup!: apply case-insensitive suggestion
142-
Co-authored-by: Michaël Zasso <[email protected]>`
143-
const bad = new Commit({
144-
sha,
145-
author,
146-
message: overlongMessage
147-
}, v)
148-
149-
bad.report = (opts) => {
150-
tt.pass('called report')
151-
tt.equal(opts.id, 'line-length', 'id')
152-
tt.equal(opts.string, overlongMessage.split('\n')[1], 'string')
153-
tt.equal(opts.level, 'fail', 'level')
154-
}
155-
156-
Rule.validate(bad, {
157-
options: {
158-
length: 72
159-
}
160-
})
161134

162135
const good = new Commit({
163-
sha,
164-
author,
136+
sha: 'f1496de5a7d5474e39eafaafe6f79befe5883a5b',
137+
author: {
138+
name: 'Jacob Smith',
139+
140+
date: '2025-12-22T09:40:42Z'
141+
},
165142
message: [
166143
'fixup!: apply case-insensitive suggestion',
167144
'Co-authored-by: Michaël Zasso <[email protected]>'

0 commit comments

Comments
 (0)