aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test-markdown-options.js
diff options
context:
space:
mode:
authorMarvin Borner2019-04-01 20:16:24 +0200
committerMarvin Borner2019-04-01 20:16:24 +0200
commit83b56d1270cdb179b64a1be51f8c1e7fe586c35e (patch)
treeae40a84def05eb42c53305e0caa8c2a2440fce71 /test/test-markdown-options.js
parent0b3e7839ebf4ed8b6c180aca0abafa28c67aee6d (diff)
Added content
Diffstat (limited to 'test/test-markdown-options.js')
-rw-r--r--test/test-markdown-options.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/test/test-markdown-options.js b/test/test-markdown-options.js
index ef61659..a9eb18d 100644
--- a/test/test-markdown-options.js
+++ b/test/test-markdown-options.js
@@ -1,27 +1,27 @@
-Reveal.addEventListener( 'ready', function() {
+Reveal.addEventListener('ready', function () {
- QUnit.module( 'Markdown' );
+ QUnit.module('Markdown');
- QUnit.test( 'Options are set', function( assert ) {
- assert.strictEqual( marked.defaults.smartypants, true );
- });
+ QUnit.test('Options are set', function (assert) {
+ assert.strictEqual(marked.defaults.smartypants, true);
+ });
- QUnit.test( 'Smart quotes are activated', function( assert ) {
- var text = document.querySelector( '.reveal .slides>section>p' ).textContent;
+ QUnit.test('Smart quotes are activated', function (assert) {
+ var text = document.querySelector('.reveal .slides>section>p').textContent;
- assert.strictEqual( /['"]/.test( text ), false );
- assert.strictEqual( /[“”‘’]/.test( text ), true );
- });
+ assert.strictEqual(/['"]/.test(text), false);
+ assert.strictEqual(/[“”‘’]/.test(text), true);
+ });
-} );
+});
Reveal.initialize({
- dependencies: [
- { src: '../plugin/markdown/marked.js' },
- // Test loading JS files with query strings
- { src: '../plugin/markdown/markdown.js?query=string' },
- ],
- markdown: {
- smartypants: true
- }
+ dependencies: [
+ {src: '../plugin/markdown/marked.js'},
+ // Test loading JS files with query strings
+ {src: '../plugin/markdown/markdown.js?query=string'},
+ ],
+ markdown: {
+ smartypants: true
+ }
});