fix issue #525 `mojito test app|mojit` failed for archetype-code #607

Merged
merged 1 commit into from Oct 11, 2012
View
37 lib/app/archetypes/mojit/default/tests/binders/index.client-tests.js.hb
@@ -1,37 +0,0 @@
-/*
- * 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']});
View
36 lib/app/archetypes/mojit/full/tests/binders/index.clients-test.js.hb
@@ -1,36 +0,0 @@
-/*
- * 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);
-
- A.skip();
-
- }
-
- }));
-
- YUITest.TestRunner.add(suite);
-
-}, '0.0.1', {requires: ['mojito-test', 'node', '{{name}}BinderIndex']});