fix(rebrand): update forensics test regexes to new repo slug
The rebrand commit dff176bf updated the error-message strings in
tests/forensics.test.cjs to mention GSD-redux/get-shit-done-redux but
missed the actual regex literals being tested. Both regexes now match
the new slug, which is what the workflow file actually contains.
Fixes 2 test failures on tests/forensics.test.cjs:151 and :161.
This commit is contained in:
@@ -150,7 +150,7 @@ describe('forensics workflow', () => {
|
|||||||
// contains the repo string.
|
// contains the repo string.
|
||||||
assert.match(
|
assert.match(
|
||||||
content,
|
content,
|
||||||
/gh issue create[\s\S]{0,250}--repo\s+gsd-build\/get-shit-done/,
|
/gh issue create[\s\S]{0,250}--repo\s+GSD-redux\/get-shit-done-redux/,
|
||||||
'gh issue create must use --repo GSD-redux/get-shit-done-redux to avoid submitting to the user\'s current project repo'
|
'gh issue create must use --repo GSD-redux/get-shit-done-redux to avoid submitting to the user\'s current project repo'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@@ -160,7 +160,7 @@ describe('forensics workflow', () => {
|
|||||||
// Regex is more robust than a fixed-length slice to formatting changes
|
// Regex is more robust than a fixed-length slice to formatting changes
|
||||||
assert.match(
|
assert.match(
|
||||||
content,
|
content,
|
||||||
/gh label list[\s\S]{0,250}--repo\s+gsd-build\/get-shit-done/,
|
/gh label list[\s\S]{0,250}--repo\s+GSD-redux\/get-shit-done-redux/,
|
||||||
'gh label list must target GSD-redux/get-shit-done-redux'
|
'gh label list must target GSD-redux/get-shit-done-redux'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user