caolan / caolan/nodeunit

Simple fix to unicode

Đang mở
#142 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
1.9k
Fork
359
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Caolan,

Simple request: in two places in the default.js reporter, the actual character is used in the code, for the checkmark (passed) and the xmark (failed) for an individual test.

To make it more cross-platform and unicode (and IDE) friendly, can it be replaced by the actual unicode?

line 81: replace the checkmark with '\u2714' (that is backslash character followed by u2714)
line 84: replace the xmark with '\u2716' (that is backslash character followed by u2716)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Open the default.js reporter and inspect lines 81 and 84, where the checkmark and xmark characters are used. Replace those source characters with the specified Unicode escape sequences, then verify that the reporter still displays the passed and failed test markers correctly.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript
Lĩnh vực
testing
Loại issue
Tái cấu trúc
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.