From f9d076663746ab29410e9c141a7b9e927e4eb5df Mon Sep 17 00:00:00 2001 From: Benjamin Tan Date: Mon, 22 Jan 2018 22:35:15 +0800 Subject: Update QUnit to 2.5.0 and `grunt-contrib-qunit` to 2.0.0. --- test/test-markdown-options.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'test/test-markdown-options.js') diff --git a/test/test-markdown-options.js b/test/test-markdown-options.js index 3ae1350..ef61659 100644 --- a/test/test-markdown-options.js +++ b/test/test-markdown-options.js @@ -2,15 +2,15 @@ Reveal.addEventListener( 'ready', function() { QUnit.module( 'Markdown' ); - test( 'Options are set', function() { - strictEqual( marked.defaults.smartypants, true ); + QUnit.test( 'Options are set', function( assert ) { + assert.strictEqual( marked.defaults.smartypants, true ); }); - test( 'Smart quotes are activated', function() { + QUnit.test( 'Smart quotes are activated', function( assert ) { var text = document.querySelector( '.reveal .slides>section>p' ).textContent; - strictEqual( /['"]/.test( text ), false ); - strictEqual( /[“”‘’]/.test( text ), true ); + assert.strictEqual( /['"]/.test( text ), false ); + assert.strictEqual( /[“”‘’]/.test( text ), true ); }); } ); @@ -18,7 +18,8 @@ Reveal.addEventListener( 'ready', function() { Reveal.initialize({ dependencies: [ { src: '../plugin/markdown/marked.js' }, - { src: '../plugin/markdown/markdown.js' }, + // Test loading JS files with query strings + { src: '../plugin/markdown/markdown.js?query=string' }, ], markdown: { smartypants: true -- cgit v1.2.3