* feat: process video question md into html * test: mdToHTML * fix: use dedicated prism component
29 lines
821 B
Plaintext
29 lines
821 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`tests-to-data plugin should have an output to match the snapshot 1`] = `
|
|
Object {
|
|
"tests": Array [
|
|
Object {
|
|
"testString": "assert.isTrue((/hello(\\\\s)+world/gi).test($('h1').text()), 'Your <code>h1</code> element should have the text \\"Hello World\\".');",
|
|
"text": "Your <code>h1</code> element should have the text \\"Hello World\\".",
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`tests-to-data plugin should match the video snapshot 1`] = `
|
|
Object {
|
|
"question": Object {
|
|
"answers": Array [
|
|
"<p>inline <code>code</code></p>",
|
|
"<p>some <em>italics</em></p>",
|
|
"<p><code> code in </code> code tags</p>",
|
|
],
|
|
"solution": 3,
|
|
"text": "<p>Question line one</p>
|
|
<pre><code class=\\"language-js\\"> var x = 'y';
|
|
</code></pre>",
|
|
},
|
|
}
|
|
`;
|