Permalink
Browse files

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

Support for `mojito test` on client/binder code had been removed,
and binder unit test code would fail. This is now unsupported by
the mojito test runner. This change removes the unsupported
binder tests from the archetypes that `mojito create` uses.
  • Loading branch information...
1 parent 0730a07 commit 111a71484b0c437fea70e4be1abde0c8d9427708 @isao committed Oct 9, 2012
@@ -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']});
@@ -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']});

0 comments on commit 111a714

Please sign in to comment.