aboutsummaryrefslogtreecommitdiff
path: root/test/test-markdown-external.js
diff options
context:
space:
mode:
authorBenjamin Tan <demoneaux@gmail.com>2018-01-22 22:35:15 +0800
committerBenjamin Tan <demoneaux@gmail.com>2018-01-22 22:38:32 +0800
commitf9d076663746ab29410e9c141a7b9e927e4eb5df (patch)
tree222ac9d883a723ddc566e13413eed3ba6330c66d /test/test-markdown-external.js
parentf0fa6fb226f918cac15e6c53bd68f2dc5c02d7c8 (diff)
downloadperl-software-in-gnu-guix-f9d076663746ab29410e9c141a7b9e927e4eb5df.tar
perl-software-in-gnu-guix-f9d076663746ab29410e9c141a7b9e927e4eb5df.tar.gz
Update QUnit to 2.5.0 and `grunt-contrib-qunit` to 2.0.0.
Diffstat (limited to 'test/test-markdown-external.js')
-rw-r--r--test/test-markdown-external.js18
1 files changed, 7 insertions, 11 deletions
diff --git a/test/test-markdown-external.js b/test/test-markdown-external.js
index cab85c6..f924986 100644
--- a/test/test-markdown-external.js
+++ b/test/test-markdown-external.js
@@ -1,24 +1,20 @@
-
-
Reveal.addEventListener( 'ready', function() {
QUnit.module( 'Markdown' );
- test( 'Vertical separator', function() {
- strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' );
+ QUnit.test( 'Vertical separator', function( assert ) {
+ assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' );
});
- test( 'Horizontal separator', function() {
- strictEqual( document.querySelectorAll( '.reveal .slides>section' ).length, 2, 'found two slides' );
+ QUnit.test( 'Horizontal separator', function( assert ) {
+ assert.strictEqual( document.querySelectorAll( '.reveal .slides>section' ).length, 2, 'found two slides' );
});
- test( 'Language highlighter', function() {
- strictEqual( document.querySelectorAll( '.hljs-keyword' ).length, 1, 'got rendered highlight tag.' );
- strictEqual( document.querySelector( '.hljs-keyword' ).innerHTML, 'var', 'the same keyword: var.' );
+ QUnit.test( 'Language highlighter', function( assert ) {
+ assert.strictEqual( document.querySelectorAll( '.hljs-keyword' ).length, 1, 'got rendered highlight tag.' );
+ assert.strictEqual( document.querySelector( '.hljs-keyword' ).innerHTML, 'var', 'the same keyword: var.' );
});
-
} );
Reveal.initialize();
-