Alon-Alexander / Alon-Alexander/functions-organizer
Add support for code comments
- 主要语言
- TypeScript
- 星标
- 1
- 派生
- 1
- PR 合并指标
- 30 天内没有已合并 PR
描述
Congratulations for great piece of work!
I was sorting code today and the code comments did not stay with the functions.
**Describe the solution you'd like**
```typescript
//** element:HTMLElement colors background and foreground */
export function colorElement(element, background = "green", color = "white") {
cy.wrap(element).invoke("css", "background", background);
cy.wrap(element).invoke("css", "color", color);
}
//** element:HTMLElement Yellow (under test), then Green or Red */
export function flashTestStatusColor(
element,
failed = false,
flashTimer = 1000
) {
if (!element) {
return;
}
element.style.border = "2px solid yellow";
setTimeout(() => {
element.style.border = `1px solid ${failed === false ? "green" : "red"}`;
}, flashTimer);
}
```
The comments were somehow floated to different places in the text.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。