Created
May 9, 2012 02:39
-
-
Save Sequoia/2641378 to your computer and use it in GitHub Desktop.
jasmine-node test spec causes node to throw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Afonigizer = require('../afonigizer.js').Afonigizer; | |
var _ = require('../node_modules/underscore/underscore.js'); | |
describe("The Afonigizer", function(){ | |
'use strict'; | |
var afonigizer, i; | |
beforeEach(function(){ | |
afonigizer = new Afonigizer(Math); | |
}); | |
describe("Load test libraries",function(){ | |
it("should load underscore",function(){ | |
expect(typeof $).toEqual('function'); | |
}); | |
it("should not die on an unloaded library",function(){ | |
expect(typeof $).not.toEqual('function'); | |
}); | |
}); | |
describe("Aliasing name parts",function(){ | |
var nameParts = []; | |
beforeEach(function(){ | |
//generate some nameParts | |
//we'll just use the index nums as names | |
for(i = 0; i < 100; i++){ | |
nameParts[i] = {}; | |
} | |
}); | |
it("Should return the same name part alias consistently",function(){ | |
//generate a bunch of names and aliases | |
//nameParts[i] = | |
//} | |
//setup aliases | |
nameParts.forEach(function(elem,index,names){ | |
//aliasParts.push( afonigizer.aliasPart(i,firstName) ); | |
}); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Without "should not die on an unloaded library" test, tests run fine & without error.