mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
test-js: Use prettier and format all files
This commit is contained in:
parent
e532888242
commit
6d58c48c2f
248 changed files with 8291 additions and 7725 deletions
|
@ -1,26 +1,29 @@
|
|||
load("test-common.js")
|
||||
load("test-common.js");
|
||||
|
||||
try {
|
||||
const s1 = Symbol("foo");
|
||||
const s2 = Symbol("foo");
|
||||
const s1 = Symbol("foo");
|
||||
const s2 = Symbol("foo");
|
||||
|
||||
assert(s1 !== s2);
|
||||
assert(s1.description === "foo");
|
||||
assert(s2.description === "foo");
|
||||
assert(s1 !== s2);
|
||||
assert(s1.description === "foo");
|
||||
assert(s2.description === "foo");
|
||||
|
||||
s1.description = "bar";
|
||||
assert(s1.description === "foo");
|
||||
s1.description = "bar";
|
||||
assert(s1.description === "foo");
|
||||
|
||||
assert(typeof s1 === "symbol");
|
||||
assert(typeof s1 === "symbol");
|
||||
|
||||
assertThrowsError(() => {
|
||||
Symbol(Symbol('foo'));
|
||||
}, {
|
||||
error: TypeError,
|
||||
message: "Cannot convert symbol to string"
|
||||
})
|
||||
|
||||
console.log("PASS");
|
||||
assertThrowsError(
|
||||
() => {
|
||||
Symbol(Symbol("foo"));
|
||||
},
|
||||
{
|
||||
error: TypeError,
|
||||
message: "Cannot convert symbol to string",
|
||||
}
|
||||
);
|
||||
|
||||
console.log("PASS");
|
||||
} catch (e) {
|
||||
console.log("FAIL: " + e);
|
||||
console.log("FAIL: " + e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue