fix(bug) : Fix url field Bug Errors
This commit is contained in:
parent
db476eb135
commit
461d424080
|
|
@ -221,13 +221,12 @@ export class TestTypeImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof modifierArgs[0] === 'function') {
|
if (typeof modifierArgs[0] === 'function') {
|
||||||
suite._modifiers.push({ type, fn: modifierArgs[0], location, description: modifierArgs[1], url: modifierArgs[1] });
|
suite._modifiers.push({ type, fn: modifierArgs[0], location, description: modifierArgs[1] });
|
||||||
} else {
|
} else {
|
||||||
if (modifierArgs.length >= 1 && !modifierArgs[0])
|
if (modifierArgs.length >= 1 && !modifierArgs[0])
|
||||||
return;
|
return;
|
||||||
const description = modifierArgs[1];
|
const description = modifierArgs[1];
|
||||||
const url = modifierArgs[1];
|
suite._staticAnnotations.push({ type, description });
|
||||||
suite._staticAnnotations.push({ type, description, url });
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue