chore: remove old parser
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
e3511f2930
commit
a3a678b7af
@ -0,0 +1,11 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`process-frontmatter plugin should have an output to match the snapshot 1`] = `
|
||||
Object {
|
||||
"challengeType": 0,
|
||||
"forumTopicId": 18276,
|
||||
"id": "bd7123c8c441eddfaeb5bdef",
|
||||
"title": "Say Hello to HTML Elements",
|
||||
"videoUrl": "https://scrimba.com/p/pVMPUv/cE8Gpt2",
|
||||
}
|
||||
`;
|
@ -0,0 +1,43 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`add-seed plugin should have an output to match the snapshot 1`] = `
|
||||
Object {
|
||||
"files": Object {
|
||||
"indexcss": Object {
|
||||
"contents": "body {
|
||||
background: green;
|
||||
}",
|
||||
"editableRegionBoundaries": Array [],
|
||||
"ext": "css",
|
||||
"head": "",
|
||||
"id": "",
|
||||
"key": "indexcss",
|
||||
"name": "index",
|
||||
"tail": "",
|
||||
},
|
||||
"indexhtml": Object {
|
||||
"contents": "<html>
|
||||
<body>
|
||||
</body>
|
||||
</html>",
|
||||
"editableRegionBoundaries": Array [],
|
||||
"ext": "html",
|
||||
"head": "",
|
||||
"id": "",
|
||||
"key": "indexhtml",
|
||||
"name": "index",
|
||||
"tail": "",
|
||||
},
|
||||
"indexjs": Object {
|
||||
"contents": "var x = 'y';",
|
||||
"editableRegionBoundaries": Array [],
|
||||
"ext": "js",
|
||||
"head": "",
|
||||
"id": "",
|
||||
"key": "indexjs",
|
||||
"name": "index",
|
||||
"tail": "",
|
||||
},
|
||||
},
|
||||
}
|
||||
`;
|
@ -0,0 +1,43 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`add solution plugin should have an output to match the snapshot 1`] = `
|
||||
Object {
|
||||
"solutions": Array [
|
||||
Object {
|
||||
"indexcss": Object {
|
||||
"contents": "body {
|
||||
background: white;
|
||||
}",
|
||||
"ext": "css",
|
||||
"head": "",
|
||||
"id": "",
|
||||
"key": "indexcss",
|
||||
"name": "index",
|
||||
"tail": "",
|
||||
},
|
||||
"indexhtml": Object {
|
||||
"contents": "<html>
|
||||
<body>
|
||||
</body>
|
||||
</html>",
|
||||
"ext": "html",
|
||||
"head": "",
|
||||
"id": "html-key",
|
||||
"key": "indexhtml",
|
||||
"name": "index",
|
||||
"tail": "",
|
||||
},
|
||||
"indexjs": Object {
|
||||
"contents": "var x = 'y';
|
||||
\`\`",
|
||||
"ext": "js",
|
||||
"head": "",
|
||||
"id": "",
|
||||
"key": "indexjs",
|
||||
"name": "index",
|
||||
"tail": "",
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
`;
|
@ -0,0 +1,23 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`add-tests plugin should have an output to match the snapshot 1`] = `
|
||||
Object {
|
||||
"tests": Array [
|
||||
Object {
|
||||
"testString": "// test code",
|
||||
"text": "<p>First hint</p>",
|
||||
},
|
||||
Object {
|
||||
"testString": "// more test code",
|
||||
"text": "<p>Second hint with <code>code</code></p>",
|
||||
},
|
||||
Object {
|
||||
"testString": "// more test code
|
||||
if(let x of xs) {
|
||||
console.log(x);
|
||||
}",
|
||||
"text": "<p>Third <em>hint</em> with <code>code</code> and <code>inline code</code></p>",
|
||||
},
|
||||
],
|
||||
}
|
||||
`;
|
@ -0,0 +1,16 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`add-text should have an output to match the snapshot 1`] = `
|
||||
Object {
|
||||
"description": "<section id=\\"description\\">
|
||||
<p>Paragraph 1</p>
|
||||
<pre><code class=\\"language-html\\">code example
|
||||
</code></pre>
|
||||
</section>",
|
||||
"instructions": "<section id=\\"instructions\\">
|
||||
<p>Paragraph 0</p>
|
||||
<pre><code class=\\"language-html\\">code example 0
|
||||
</code></pre>
|
||||
</section>",
|
||||
}
|
||||
`;
|
@ -0,0 +1,18 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`add-video-question plugin should match the video snapshot 1`] = `
|
||||
Object {
|
||||
"question": Object {
|
||||
"answers": Array [
|
||||
"<p>Some inline <code>code</code></p>",
|
||||
"<p>Some <em>italics</em></p>
|
||||
<p>A second answer paragraph.</p>",
|
||||
"<p><code> code in </code> code tags</p>",
|
||||
],
|
||||
"solution": 3,
|
||||
"text": "<p>Question line 1</p>
|
||||
<pre><code class=\\"language-js\\"> var x = 'y';
|
||||
</code></pre>",
|
||||
},
|
||||
}
|
||||
`;
|
@ -0,0 +1,558 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`replace-imports should have an output to match the snapshot 1`] = `
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 18,
|
||||
"line": 3,
|
||||
"offset": 68,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 3,
|
||||
"line": 3,
|
||||
"offset": 53,
|
||||
},
|
||||
},
|
||||
"type": "text",
|
||||
"value": "--description--",
|
||||
},
|
||||
],
|
||||
"depth": 1,
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 18,
|
||||
"line": 3,
|
||||
"offset": 68,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 3,
|
||||
"offset": 51,
|
||||
},
|
||||
},
|
||||
"type": "heading",
|
||||
},
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 12,
|
||||
"line": 5,
|
||||
"offset": 81,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 5,
|
||||
"offset": 70,
|
||||
},
|
||||
},
|
||||
"type": "text",
|
||||
"value": "Paragraph 1",
|
||||
},
|
||||
],
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 12,
|
||||
"line": 5,
|
||||
"offset": 81,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 5,
|
||||
"offset": 70,
|
||||
},
|
||||
},
|
||||
"type": "paragraph",
|
||||
},
|
||||
Object {
|
||||
"lang": "html",
|
||||
"meta": null,
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 4,
|
||||
"line": 9,
|
||||
"offset": 107,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 7,
|
||||
"offset": 83,
|
||||
},
|
||||
},
|
||||
"type": "code",
|
||||
"value": "code example",
|
||||
},
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 19,
|
||||
"line": 11,
|
||||
"offset": 127,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 3,
|
||||
"line": 11,
|
||||
"offset": 111,
|
||||
},
|
||||
},
|
||||
"type": "text",
|
||||
"value": "--instructions--",
|
||||
},
|
||||
],
|
||||
"depth": 1,
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 19,
|
||||
"line": 11,
|
||||
"offset": 127,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 11,
|
||||
"offset": 109,
|
||||
},
|
||||
},
|
||||
"type": "heading",
|
||||
},
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 12,
|
||||
"line": 13,
|
||||
"offset": 140,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 13,
|
||||
"offset": 129,
|
||||
},
|
||||
},
|
||||
"type": "text",
|
||||
"value": "Paragraph 0",
|
||||
},
|
||||
],
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 12,
|
||||
"line": 13,
|
||||
"offset": 140,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 13,
|
||||
"offset": 129,
|
||||
},
|
||||
},
|
||||
"type": "paragraph",
|
||||
},
|
||||
Object {
|
||||
"lang": "html",
|
||||
"meta": null,
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 4,
|
||||
"line": 17,
|
||||
"offset": 168,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 15,
|
||||
"offset": 142,
|
||||
},
|
||||
},
|
||||
"type": "code",
|
||||
"value": "code example 0",
|
||||
},
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 12,
|
||||
"line": 19,
|
||||
"offset": 181,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 3,
|
||||
"line": 19,
|
||||
"offset": 172,
|
||||
},
|
||||
},
|
||||
"type": "text",
|
||||
"value": "--hints--",
|
||||
},
|
||||
],
|
||||
"depth": 1,
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 12,
|
||||
"line": 19,
|
||||
"offset": 181,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 19,
|
||||
"offset": 170,
|
||||
},
|
||||
},
|
||||
"type": "heading",
|
||||
},
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 11,
|
||||
"line": 21,
|
||||
"offset": 193,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 21,
|
||||
"offset": 183,
|
||||
},
|
||||
},
|
||||
"type": "text",
|
||||
"value": "First hint",
|
||||
},
|
||||
],
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 11,
|
||||
"line": 21,
|
||||
"offset": 193,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 21,
|
||||
"offset": 183,
|
||||
},
|
||||
},
|
||||
"type": "paragraph",
|
||||
},
|
||||
Object {
|
||||
"lang": "js",
|
||||
"meta": null,
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 4,
|
||||
"line": 25,
|
||||
"offset": 217,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 23,
|
||||
"offset": 195,
|
||||
},
|
||||
},
|
||||
"type": "code",
|
||||
"value": "// test code",
|
||||
},
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 18,
|
||||
"line": 27,
|
||||
"offset": 236,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 27,
|
||||
"offset": 219,
|
||||
},
|
||||
},
|
||||
"type": "text",
|
||||
"value": "Second hint with ",
|
||||
},
|
||||
Object {
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 24,
|
||||
"line": 27,
|
||||
"offset": 242,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 18,
|
||||
"line": 27,
|
||||
"offset": 236,
|
||||
},
|
||||
},
|
||||
"type": "html",
|
||||
"value": "<code>",
|
||||
},
|
||||
Object {
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 28,
|
||||
"line": 27,
|
||||
"offset": 246,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 24,
|
||||
"line": 27,
|
||||
"offset": 242,
|
||||
},
|
||||
},
|
||||
"type": "text",
|
||||
"value": "code",
|
||||
},
|
||||
Object {
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 35,
|
||||
"line": 27,
|
||||
"offset": 253,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 28,
|
||||
"line": 27,
|
||||
"offset": 246,
|
||||
},
|
||||
},
|
||||
"type": "html",
|
||||
"value": "</code>",
|
||||
},
|
||||
],
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 35,
|
||||
"line": 27,
|
||||
"offset": 253,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 27,
|
||||
"offset": 219,
|
||||
},
|
||||
},
|
||||
"type": "paragraph",
|
||||
},
|
||||
Object {
|
||||
"lang": "js",
|
||||
"meta": null,
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 4,
|
||||
"line": 31,
|
||||
"offset": 282,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 29,
|
||||
"offset": 255,
|
||||
},
|
||||
},
|
||||
"type": "code",
|
||||
"value": "// more test code",
|
||||
},
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 11,
|
||||
"line": 34,
|
||||
"offset": 295,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 3,
|
||||
"line": 34,
|
||||
"offset": 287,
|
||||
},
|
||||
},
|
||||
"type": "text",
|
||||
"value": "--seed--",
|
||||
},
|
||||
],
|
||||
"depth": 1,
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 11,
|
||||
"line": 34,
|
||||
"offset": 295,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 34,
|
||||
"offset": 285,
|
||||
},
|
||||
},
|
||||
"type": "heading",
|
||||
},
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 21,
|
||||
"line": 36,
|
||||
"offset": 317,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 4,
|
||||
"line": 36,
|
||||
"offset": 300,
|
||||
},
|
||||
},
|
||||
"type": "text",
|
||||
"value": "--seed-contents--",
|
||||
},
|
||||
],
|
||||
"depth": 2,
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 21,
|
||||
"line": 36,
|
||||
"offset": 317,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 36,
|
||||
"offset": 297,
|
||||
},
|
||||
},
|
||||
"type": "heading",
|
||||
},
|
||||
Object {
|
||||
"lang": "html",
|
||||
"meta": null,
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 4,
|
||||
"line": 43,
|
||||
"offset": 364,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 38,
|
||||
"offset": 319,
|
||||
},
|
||||
},
|
||||
"type": "code",
|
||||
"value": "<html>
|
||||
<body>
|
||||
</body>
|
||||
</html>",
|
||||
},
|
||||
Object {
|
||||
"lang": "css",
|
||||
"meta": null,
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 4,
|
||||
"line": 49,
|
||||
"offset": 406,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 45,
|
||||
"offset": 366,
|
||||
},
|
||||
},
|
||||
"type": "code",
|
||||
"value": "body {
|
||||
background: green;
|
||||
}",
|
||||
},
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"alt": "custom-name",
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 17,
|
||||
"line": 51,
|
||||
"offset": 424,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 51,
|
||||
"offset": 408,
|
||||
},
|
||||
},
|
||||
"title": null,
|
||||
"type": "image",
|
||||
"url": "",
|
||||
},
|
||||
],
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 17,
|
||||
"line": 51,
|
||||
"offset": 424,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 51,
|
||||
"offset": 408,
|
||||
},
|
||||
},
|
||||
"type": "paragraph",
|
||||
},
|
||||
Object {
|
||||
"lang": "js",
|
||||
"meta": null,
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 4,
|
||||
"line": 55,
|
||||
"offset": 448,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 53,
|
||||
"offset": 426,
|
||||
},
|
||||
},
|
||||
"type": "code",
|
||||
"value": "var x = 'y';",
|
||||
},
|
||||
Object {
|
||||
"lang": "js",
|
||||
"meta": null,
|
||||
"position": Object {
|
||||
"end": Object {
|
||||
"column": 4,
|
||||
"line": 6,
|
||||
"offset": 125,
|
||||
},
|
||||
"start": Object {
|
||||
"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": Object {
|
||||
"end": Object {
|
||||
"column": 1,
|
||||
"line": 58,
|
||||
"offset": 476,
|
||||
},
|
||||
"start": Object {
|
||||
"column": 1,
|
||||
"line": 1,
|
||||
"offset": 0,
|
||||
},
|
||||
},
|
||||
"type": "root",
|
||||
}
|
||||
`;
|
Reference in New Issue
Block a user