Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (27 sloc) 0.897 kb
/*
* Copyright (c) 2012 Yahoo! Inc. All rights reserved.
*/
YUI.add('{{name}}BinderIndex-tests', function(Y, NAME) {
var suite = new YUITest.TestSuite(NAME),
binder,
A = YUITest.Assert;
suite.add(new YUITest.TestCase({
name: '{{name}} index binder tests',
setUp: function() {
binder = Y.mojito.binders.{{name}}BinderIndex;
},
tearDown: function() {
binder = null;
},
'TODO: test update id': function() {
var node = Y.Node.create("<div id='guid123'></div>");
binder.init({
_guid: 'guid123'
});
binder.bind(node);
// there is nothing to test in the binder initially
A.skip();
}
}));
YUITest.TestRunner.add(suite);
}, '0.0.1', {requires: ['mojito-test', 'node', '{{name}}BinderIndex']});
Jump to Line
Something went wrong with that request. Please try again.