Libraries: Move to Userland/Libraries/

This commit is contained in:
Andreas Kling 2021-01-12 12:17:30 +01:00
parent dc28c07fa5
commit 13d7c09125
Notes: sideshowbarker 2024-07-18 23:53:55 +09:00
1857 changed files with 266 additions and 274 deletions

View file

@ -1,47 +0,0 @@
test("basic functionality", () => {
let o = {
foo: 1,
bar: "baz",
qux: {
get x() {
return 10;
},
y() {
return 20;
},
arr: [1, 2, 3],
},
};
let string = JSON.stringify(o, null, 4);
let expected = `{
"foo": 1,
"bar": "baz",
"qux": {
"x": 10,
"arr": [
1,
2,
3
]
}
}`;
expect(string).toBe(expected);
string = JSON.stringify(o, null, "abcd");
expected = `{
abcd"foo": 1,
abcd"bar": "baz",
abcd"qux": {
abcdabcd"x": 10,
abcdabcd"arr": [
abcdabcdabcd1,
abcdabcdabcd2,
abcdabcdabcd3
abcdabcd]
abcd}
}`;
expect(string).toBe(expected);
});