fix(tests): escape '/' in forensics test regex literals (#123)
* fix(tests): escape '/' in forensics test regex literals Closes #3855 * fix: add required type and pr fields to changeset frontmatter
This commit is contained in:
@@ -150,7 +150,7 @@ describe('forensics workflow', () => {
|
||||
// contains the repo string.
|
||||
assert.match(
|
||||
content,
|
||||
/gh issue create[\s\S]{0,250}--repo\s+open-gsd/get-shit-done-redux/,
|
||||
/gh issue create[\s\S]{0,250}--repo\s+open-gsd\/get-shit-done-redux/,
|
||||
'gh issue create must use --repo open-gsd/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
|
||||
assert.match(
|
||||
content,
|
||||
/gh label list[\s\S]{0,250}--repo\s+open-gsd/get-shit-done-redux/,
|
||||
/gh label list[\s\S]{0,250}--repo\s+open-gsd\/get-shit-done-redux/,
|
||||
'gh label list must target open-gsd/get-shit-done-redux'
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user