Permalink
Browse files

Update AMD tests

  • Loading branch information...
1 parent 828ffdb commit 9aedb8751673330564fb718ee30e8acef984b17a Kevin Malakoff committed Sep 14, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −0 Bakefile.coffee
  2. +2 −1 test/core/test-amd.coffee
View
@@ -47,6 +47,7 @@ module.exports =
'cp -v backbone-relational vendor/backbone-relational.js'
'cp -v lodash vendor/lodash.js'
+ # amd tests
'cp -v underscore test/vendor/underscore.js'
'cp -v backbone test/vendor/backbone.js'
'cp -v knockout-client/knockout.debug.js test/vendor/knockout.js'
@@ -3,10 +3,11 @@ $(document).ready( ->
# Knockback and depdenencies
require(['underscore', 'backbone', 'knockout', 'knockback', 'knockback-inspector'], (_, Backbone, ko, kb, kbi) ->
+ _ or (_ = kb._)
Backbone or (Backbone = kb.Backbone)
test("TEST DEPENDENCY MISSING", ->
- ok(!!Backbone); ok(!!ko); ok(!!kb); ok(!!kbi)
+ ok(!!_); ok(!!Backbone); ok(!!ko); ok(!!kb); ok(!!kbi)
)
# make kbi global so can be accessed by templates

0 comments on commit 9aedb87

Please sign in to comment.