37 lines
812 B
JavaScript
37 lines
812 B
JavaScript
run_spec(
|
|
{
|
|
dirname: __dirname,
|
|
snippets: [
|
|
"{foo}",
|
|
'{["foo"]:"bar"}',
|
|
'{"foo": ~1}',
|
|
'{"foo": false || "bar"}',
|
|
'{"foo": undefined}',
|
|
'{"foo": () => {}}',
|
|
"packages\\the-hub\\cypress\\fixtures\\gridConfiguration.json",
|
|
"1+2",
|
|
"[,]",
|
|
"[1,,2]",
|
|
"{Infinity}",
|
|
"{[key]: 1}",
|
|
"{[key()]: 1}",
|
|
"{['CallExpression']: 1}",
|
|
"{['StringLiteral']: 1}",
|
|
"{['string']: 1}",
|
|
"{[1]: 1}",
|
|
"{[Infinity]: 1}",
|
|
"{[-Infinity]: 1}",
|
|
"{[{key: 'value'}]: 1}",
|
|
"{[[]]: 1}",
|
|
"{[null]: 1}",
|
|
"{key: +foo()}",
|
|
"{key: void foo()}",
|
|
"#!/usr/bin/env node\n{}",
|
|
'"use strict"\n{}',
|
|
"/* comment */",
|
|
"// comment",
|
|
],
|
|
},
|
|
["json", "json5", "json-stringify"]
|
|
);
|