mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-06 06:01:31 -05:00
544 lines
10 KiB
Plaintext
544 lines
10 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`replace-imports should have an output to match the snapshot 1`] = `
|
|
{
|
|
"children": [
|
|
{
|
|
"children": [
|
|
{
|
|
"position": {
|
|
"end": {
|
|
"column": 18,
|
|
"line": 3,
|
|
"offset": 67,
|
|
},
|
|
"start": {
|
|
"column": 3,
|
|
"line": 3,
|
|
"offset": 52,
|
|
},
|
|
},
|
|
"type": "text",
|
|
"value": "--description--",
|
|
},
|
|
],
|
|
"depth": 1,
|
|
"position": {
|
|
"end": {
|
|
"column": 18,
|
|
"line": 3,
|
|
"offset": 67,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 3,
|
|
"offset": 50,
|
|
},
|
|
},
|
|
"type": "heading",
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"position": {
|
|
"end": {
|
|
"column": 12,
|
|
"line": 5,
|
|
"offset": 80,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 5,
|
|
"offset": 69,
|
|
},
|
|
},
|
|
"type": "text",
|
|
"value": "Paragraph 1",
|
|
},
|
|
],
|
|
"position": {
|
|
"end": {
|
|
"column": 12,
|
|
"line": 5,
|
|
"offset": 80,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 5,
|
|
"offset": 69,
|
|
},
|
|
},
|
|
"type": "paragraph",
|
|
},
|
|
{
|
|
"lang": "html",
|
|
"meta": null,
|
|
"position": {
|
|
"end": {
|
|
"column": 4,
|
|
"line": 9,
|
|
"offset": 106,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 7,
|
|
"offset": 82,
|
|
},
|
|
},
|
|
"type": "code",
|
|
"value": "code example",
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"position": {
|
|
"end": {
|
|
"column": 19,
|
|
"line": 11,
|
|
"offset": 126,
|
|
},
|
|
"start": {
|
|
"column": 3,
|
|
"line": 11,
|
|
"offset": 110,
|
|
},
|
|
},
|
|
"type": "text",
|
|
"value": "--instructions--",
|
|
},
|
|
],
|
|
"depth": 1,
|
|
"position": {
|
|
"end": {
|
|
"column": 19,
|
|
"line": 11,
|
|
"offset": 126,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 11,
|
|
"offset": 108,
|
|
},
|
|
},
|
|
"type": "heading",
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"position": {
|
|
"end": {
|
|
"column": 12,
|
|
"line": 13,
|
|
"offset": 139,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 13,
|
|
"offset": 128,
|
|
},
|
|
},
|
|
"type": "text",
|
|
"value": "Paragraph 0",
|
|
},
|
|
],
|
|
"position": {
|
|
"end": {
|
|
"column": 12,
|
|
"line": 13,
|
|
"offset": 139,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 13,
|
|
"offset": 128,
|
|
},
|
|
},
|
|
"type": "paragraph",
|
|
},
|
|
{
|
|
"lang": "html",
|
|
"meta": null,
|
|
"position": {
|
|
"end": {
|
|
"column": 4,
|
|
"line": 17,
|
|
"offset": 167,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 15,
|
|
"offset": 141,
|
|
},
|
|
},
|
|
"type": "code",
|
|
"value": "code example 0",
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"position": {
|
|
"end": {
|
|
"column": 12,
|
|
"line": 19,
|
|
"offset": 180,
|
|
},
|
|
"start": {
|
|
"column": 3,
|
|
"line": 19,
|
|
"offset": 171,
|
|
},
|
|
},
|
|
"type": "text",
|
|
"value": "--hints--",
|
|
},
|
|
],
|
|
"depth": 1,
|
|
"position": {
|
|
"end": {
|
|
"column": 12,
|
|
"line": 19,
|
|
"offset": 180,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 19,
|
|
"offset": 169,
|
|
},
|
|
},
|
|
"type": "heading",
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"position": {
|
|
"end": {
|
|
"column": 11,
|
|
"line": 21,
|
|
"offset": 192,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 21,
|
|
"offset": 182,
|
|
},
|
|
},
|
|
"type": "text",
|
|
"value": "First hint",
|
|
},
|
|
],
|
|
"position": {
|
|
"end": {
|
|
"column": 11,
|
|
"line": 21,
|
|
"offset": 192,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 21,
|
|
"offset": 182,
|
|
},
|
|
},
|
|
"type": "paragraph",
|
|
},
|
|
{
|
|
"lang": "js",
|
|
"meta": null,
|
|
"position": {
|
|
"end": {
|
|
"column": 4,
|
|
"line": 25,
|
|
"offset": 216,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 23,
|
|
"offset": 194,
|
|
},
|
|
},
|
|
"type": "code",
|
|
"value": "// test code",
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"position": {
|
|
"end": {
|
|
"column": 18,
|
|
"line": 27,
|
|
"offset": 235,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 27,
|
|
"offset": 218,
|
|
},
|
|
},
|
|
"type": "text",
|
|
"value": "Second hint with ",
|
|
},
|
|
{
|
|
"position": {
|
|
"end": {
|
|
"column": 24,
|
|
"line": 27,
|
|
"offset": 241,
|
|
},
|
|
"start": {
|
|
"column": 18,
|
|
"line": 27,
|
|
"offset": 235,
|
|
},
|
|
},
|
|
"type": "html",
|
|
"value": "<code>",
|
|
},
|
|
{
|
|
"position": {
|
|
"end": {
|
|
"column": 28,
|
|
"line": 27,
|
|
"offset": 245,
|
|
},
|
|
"start": {
|
|
"column": 24,
|
|
"line": 27,
|
|
"offset": 241,
|
|
},
|
|
},
|
|
"type": "text",
|
|
"value": "code",
|
|
},
|
|
{
|
|
"position": {
|
|
"end": {
|
|
"column": 35,
|
|
"line": 27,
|
|
"offset": 252,
|
|
},
|
|
"start": {
|
|
"column": 28,
|
|
"line": 27,
|
|
"offset": 245,
|
|
},
|
|
},
|
|
"type": "html",
|
|
"value": "</code>",
|
|
},
|
|
],
|
|
"position": {
|
|
"end": {
|
|
"column": 35,
|
|
"line": 27,
|
|
"offset": 252,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 27,
|
|
"offset": 218,
|
|
},
|
|
},
|
|
"type": "paragraph",
|
|
},
|
|
{
|
|
"lang": "js",
|
|
"meta": null,
|
|
"position": {
|
|
"end": {
|
|
"column": 4,
|
|
"line": 31,
|
|
"offset": 281,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 29,
|
|
"offset": 254,
|
|
},
|
|
},
|
|
"type": "code",
|
|
"value": "// more test code",
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"position": {
|
|
"end": {
|
|
"column": 11,
|
|
"line": 34,
|
|
"offset": 294,
|
|
},
|
|
"start": {
|
|
"column": 3,
|
|
"line": 34,
|
|
"offset": 286,
|
|
},
|
|
},
|
|
"type": "text",
|
|
"value": "--seed--",
|
|
},
|
|
],
|
|
"depth": 1,
|
|
"position": {
|
|
"end": {
|
|
"column": 11,
|
|
"line": 34,
|
|
"offset": 294,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 34,
|
|
"offset": 284,
|
|
},
|
|
},
|
|
"type": "heading",
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"position": {
|
|
"end": {
|
|
"column": 21,
|
|
"line": 36,
|
|
"offset": 316,
|
|
},
|
|
"start": {
|
|
"column": 4,
|
|
"line": 36,
|
|
"offset": 299,
|
|
},
|
|
},
|
|
"type": "text",
|
|
"value": "--seed-contents--",
|
|
},
|
|
],
|
|
"depth": 2,
|
|
"position": {
|
|
"end": {
|
|
"column": 21,
|
|
"line": 36,
|
|
"offset": 316,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 36,
|
|
"offset": 296,
|
|
},
|
|
},
|
|
"type": "heading",
|
|
},
|
|
{
|
|
"lang": "html",
|
|
"meta": null,
|
|
"position": {
|
|
"end": {
|
|
"column": 4,
|
|
"line": 43,
|
|
"offset": 363,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 38,
|
|
"offset": 318,
|
|
},
|
|
},
|
|
"type": "code",
|
|
"value": "<html>
|
|
<body>
|
|
</body>
|
|
</html>",
|
|
},
|
|
{
|
|
"lang": "css",
|
|
"meta": null,
|
|
"position": {
|
|
"end": {
|
|
"column": 4,
|
|
"line": 49,
|
|
"offset": 405,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 45,
|
|
"offset": 365,
|
|
},
|
|
},
|
|
"type": "code",
|
|
"value": "body {
|
|
background: green;
|
|
}",
|
|
},
|
|
{
|
|
"attributes": {
|
|
"id": "custom-name",
|
|
},
|
|
"children": [],
|
|
"name": "id",
|
|
"position": {
|
|
"end": {
|
|
"column": 19,
|
|
"line": 51,
|
|
"offset": 425,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 51,
|
|
"offset": 407,
|
|
},
|
|
},
|
|
"type": "leafDirective",
|
|
},
|
|
{
|
|
"lang": "js",
|
|
"meta": null,
|
|
"position": {
|
|
"end": {
|
|
"column": 4,
|
|
"line": 55,
|
|
"offset": 449,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 53,
|
|
"offset": 427,
|
|
},
|
|
},
|
|
"type": "code",
|
|
"value": "var x = 'y';",
|
|
},
|
|
{
|
|
"lang": "js",
|
|
"meta": null,
|
|
"position": {
|
|
"end": {
|
|
"column": 4,
|
|
"line": 6,
|
|
"offset": 125,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 1,
|
|
"offset": 0,
|
|
},
|
|
},
|
|
"type": "code",
|
|
"value": "for (let index = 0; index < array.length; index++) {
|
|
const element = array[index];
|
|
// imported from script.md
|
|
}",
|
|
},
|
|
],
|
|
"position": {
|
|
"end": {
|
|
"column": 1,
|
|
"line": 58,
|
|
"offset": 477,
|
|
},
|
|
"start": {
|
|
"column": 1,
|
|
"line": 1,
|
|
"offset": 0,
|
|
},
|
|
},
|
|
"type": "root",
|
|
}
|
|
`;
|