aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-04-27 15:33:41 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-04-27 15:33:41 +0200
commit0140a15bae7cd1c295bf6d64157fed3eaf065c0a (patch)
tree315420c2c2172945121f62d4d5a3cace83dac56c
parentc58096ea991771425f61b9a3a6fc0de8abab07d6 (diff)
downloadperl-software-in-gnu-guix-0140a15bae7cd1c295bf6d64157fed3eaf065c0a.tar
perl-software-in-gnu-guix-0140a15bae7cd1c295bf6d64157fed3eaf065c0a.tar.gz
fix getindices test
-rw-r--r--test/test.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/test.js b/test/test.js
index 30b5c75..c34a04a 100644
--- a/test/test.js
+++ b/test/test.js
@@ -88,15 +88,17 @@ Reveal.addEventListener( 'ready', function() {
test( 'Reveal.getIndices', function() {
var indices = Reveal.getIndices();
- ok( typeof indices.hasOwnProperty( 'h' ), 'h exists' );
- ok( typeof indices.hasOwnProperty( 'v' ), 'v exists' );
- ok( typeof indices.hasOwnProperty( 'f' ), 'f exists' );
+ ok( indices.hasOwnProperty( 'h' ), 'h exists' );
+ ok( indices.hasOwnProperty( 'v' ), 'v exists' );
+ ok( indices.hasOwnProperty( 'f' ), 'f exists' );
Reveal.slide( 1, 0 );
- ok( Reveal.getIndices().h === 1 && Reveal.getIndices().v === 0, 'h 1, v 0' );
+ strictEqual( Reveal.getIndices().h, 1, 'h 1' );
+ strictEqual( Reveal.getIndices().v, 0, 'v 0' );
Reveal.slide( 1, 2 );
- ok( Reveal.getIndices().h === 1 && Reveal.getIndices().v === 2, 'h 1, v 2' );
+ strictEqual( Reveal.getIndices().h, 1, 'h 1' );
+ strictEqual( Reveal.getIndices().v, 2, 'v 2' );
Reveal.slide( 0, 0 );
});