Commit 3dd6ba51 authored by runawaygo's avatar runawaygo

Fixed the failure testcases. Wrap the template compile with a function.

parent 5cc9baa7
......@@ -8,7 +8,7 @@ describe( 'views/*', function() {
require( [ 'text!app/views/clear_button.html' ], function( html ){
expect( html ).to.be.a( 'string' );
expect( html ).to.match( /completedCount/ );
expect( Em.Handlebars.compile( html ) ).to.not.throw( Error );
expect( function(){ Em.Handlebars.compile( html ) } ).to.not.throw( Error );
done();
});
});
......@@ -21,7 +21,7 @@ describe( 'views/*', function() {
expect( html ).to.match( /Todos\.todosController/ );
expect( html ).to.match( /Checkbox/ );
expect( html ).to.match( /class="toggle"/ );
expect( Em.Handlebars.compile( html ) ).to.not.throw( Error );
expect( function(){ Em.Handlebars.compile( html ) } ).to.not.throw( Error );
done();
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment