Commit 99282a82 authored by Addy Osmani's avatar Addy Osmani

Merge pull request #186 from runawaygo/master

Fixed the failed testcases on views in project emberjs_require.
parents 2aef4b5d c2abe8ee
......@@ -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