зеркало из https://github.com/mozilla/fxa.git
fix(fxa-shared): failure to injest all unit test results in CI
Because: * an invalid token in the JUnit XML report for fxa-shared is causing test result ingestion to fail in CI This commit: * makes the invalid token print safe for reporting Closes #FXA-10279
This commit is contained in:
Родитель
d0cc25cd56
Коммит
489f9a317a
|
@ -134,7 +134,10 @@ describe('oauth/scopes:', () => {
|
|||
];
|
||||
|
||||
INVALID_SCOPE_VALUES.forEach((source) => {
|
||||
it(`scope "${source}" is invalid`, () => {
|
||||
// Invalid characters, when used in test names, cause test result
|
||||
// injestion errors in CI
|
||||
const printSafeSource = source.replace(/\0/g, '\\0');
|
||||
it(`scope "${printSafeSource}" is invalid`, () => {
|
||||
assert.throws(
|
||||
() => scopes.fromString(source),
|
||||
Error,
|
||||
|
|
Загрузка…
Ссылка в новой задаче