Skip to content

Instantly share code, notes, and snippets.

@irissilvermoon
Created July 30, 2013 18:22
Show Gist options
  • Save irissilvermoon/6115438 to your computer and use it in GitHub Desktop.
Save irissilvermoon/6115438 to your computer and use it in GitHub Desktop.
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