Created
July 30, 2013 18:22
-
-
Save irissilvermoon/6115438 to your computer and use it in GitHub Desktop.
This file contains 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 Bob = require('./bob'); | |
describe("Bob", function() { | |
var bob = new Bob(); | |
it("stating something", function() { | |
var result = bob.hey('Tom-ay-to, tom-aaaah-to.'); | |
expect(result).toEqual('Whatever'); | |
}); | |
xit("shouting", function() { | |
var result = bob.hey('WATCH OUT!'); | |
expect(result).toEqual('Woah, chill out!'); | |
}); | |
xit("asking a question", function() { | |
var result = bob.hey('Does this cryogenic chamber make me look fat?'); | |
expect(result).toEqual('Sure'); | |
}); | |
xit("talking forcefully", function() { | |
var result = bob.hey("Let's go make out behind the gym!"); | |
expect(result).toEqual('Whatever'); | |
}); | |
xit("shouting numbers", function() { | |
var result = bob.hey('1, 2, 3 GO!'); | |
expect(result).toEqual('Woah, chill out!'); | |
}); | |
xit("shouting with special characters", function() { | |
var result = bob.hey('ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!'); | |
expect(result).toEqual('Woah, chill out!'); | |
}); | |
xit("silence", function() { | |
var result = bob.hey(''); | |
expect(result).toEqual('Fine, be that way.'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment