// Tests will be added soon
qunit: {
- files: [ 'test/**/*.html' ]
+ files: [ 'test/*.html' ]
},
uglify: {
// Serve presentation locally
grunt.registerTask( 'serve', [ 'connect', 'watch' ] );
+ // Run tests
+ grunt.registerTask( 'test', [ 'jshint', 'qunit' ] );
+
};
"homepage": "http://lab.hakim.se/reveal-js",
"subdomain": "revealjs",
"scripts": {
- "test": "grunt jshint qunit",
+ "test": "grunt test",
"start": ""
},
"author": {
asyncTest( 'fragmentshown event', function() {
expect( 2 );
- start();
var _onEvent = function( event ) {
ok( true, 'event fired' );
Reveal.next();
Reveal.prev(); // shouldn't fire fragmentshown
+ start();
+
Reveal.removeEventListener( 'fragmentshown', _onEvent );
});