From 83b56d1270cdb179b64a1be51f8c1e7fe586c35e Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 1 Apr 2019 20:16:24 +0200 Subject: Added content --- test/test-markdown-options.js | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'test/test-markdown-options.js') 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 + } }); -- cgit v1.2.3