mirror of
https://github.com/bendtherules/ask262.git
synced 2026-08-18 13:21:55 +00:00
72 lines
1.3 KiB
Plaintext
72 lines
1.3 KiB
Plaintext
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`preview evaluation > [] 1`] = `
|
|
{
|
|
"className": "Array",
|
|
"description": "Array(0)",
|
|
"objectId": "default:1",
|
|
"preview": {
|
|
"description": "Array(0)",
|
|
"overflow": false,
|
|
"properties": [],
|
|
"subtype": "array",
|
|
"type": "object",
|
|
},
|
|
"subtype": "array",
|
|
"type": "object",
|
|
}
|
|
`;
|
|
|
|
exports[`preview evaluation > [1, 2, 3].map(x => x + 1) 1`] = `
|
|
{
|
|
"className": "Array",
|
|
"description": "Array(3)",
|
|
"objectId": "default:4",
|
|
"preview": {
|
|
"description": "Array(3)",
|
|
"overflow": false,
|
|
"properties": [
|
|
{
|
|
"name": "0",
|
|
"type": "number",
|
|
"value": "2",
|
|
},
|
|
{
|
|
"name": "1",
|
|
"type": "number",
|
|
"value": "3",
|
|
},
|
|
{
|
|
"name": "2",
|
|
"type": "number",
|
|
"value": "4",
|
|
},
|
|
],
|
|
"subtype": "array",
|
|
"type": "object",
|
|
},
|
|
"subtype": "array",
|
|
"type": "object",
|
|
}
|
|
`;
|
|
|
|
exports[`preview evaluation > { let a = 1; a } 1`] = `
|
|
{
|
|
"description": "1",
|
|
"type": "number",
|
|
"value": 1,
|
|
}
|
|
`;
|
|
|
|
exports[`preview evaluation > { var a = 1; a } 1`] = `"side effect"`;
|
|
|
|
exports[`preview evaluation > 1 1`] = `
|
|
{
|
|
"description": "1",
|
|
"type": "number",
|
|
"value": 1,
|
|
}
|
|
`;
|
|
|
|
exports[`preview evaluation > globalThis.x = 1 1`] = `"side effect"`;
|