Work on RequireJS Jasmine test.

This commit is contained in:
valera-rozuvan
2012-12-05 11:32:10 +02:00
committed by Valera Rozuvan
parent 7a8d83a17f
commit 233a35e01e

View File

@@ -1,10 +1,8 @@
describe "RequireJS namespacing", ->
beforeEach ->
#
# * Jasmine does not provide a way to use the typeof operator. We need
# * to create our own custom matchers so that a TypeError is not thrown.
#
# Jasmine does not provide a way to use the typeof operator. We need
# to create our own custom matchers so that a TypeError is not thrown.
@addMatchers
requirejsTobeUndefined: ->
typeof requirejs is "undefined"