Test every ASCII character in prometheus test

The a and A felt lonely being the only letters included. Add the other
letters in the ASCII character set as there was no good reason to leave
them out.
This commit is contained in:
Hornwitser committed 2026-03-10 02:19:01 +01:00
1 parent 86a648e759
commit 60eb2389a3
1 file changed
+3 -4
+3 -4
View File
@@ -653,12 +653,11 @@ describe("lib/prometheus", function() {
);
let labelValue = "";
// Include every ASCII codepoint
for (let i = 0; i < 128; i++) {
const char = String.fromCodePoint(i);
if (!/[1-9B-Zb-z]/.test(char)) { // exclude boring characters
labelValue += char;
}
labelValue += String.fromCodePoint(i);
}
// Include Unicode codepoints from the basic and supplementary planes.
labelValue += "©💣";
gauge.labels(labelValue, "2");