aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test-markdown-options.js
diff options
context:
space:
mode:
authorSean Parent2018-04-13 07:55:02 -0700
committerGitHub2018-04-13 07:55:02 -0700
commit97c1a0ecc1bf729dbe227ed0a3af0bfd3bc38613 (patch)
tree4fd0f338f0f58a46f213daaaa4744df4980bf45b /test/test-markdown-options.js
parent64b2a27455240e57c2cc1a90300391a3c3b91e28 (diff)
parent397feab8b4be5f8445ebb05808b507248188d4fe (diff)
Merge branch 'dev' into master
Diffstat (limited to 'test/test-markdown-options.js')
-rw-r--r--test/test-markdown-options.js13
1 files changed, 7 insertions, 6 deletions
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