Skip to content

Instantly share code, notes, and snippets.

@searls
Created October 26, 2011 22:41
Show Gist options
  • Save searls/1318242 to your computer and use it in GitHub Desktop.
Save searls/1318242 to your computer and use it in GitHub Desktop.
window.concatenation = function(s1,s2) {
return s1 + ', ' + s2 + " and pandas!";
};
describe('concatenation',function(){
it('has pandas',function(){
expect(concatenation("a","b")).toBe("a, b and pandas!");
});
});
window.math = function(left,right){
return left + right * 3;
};
describe('math',function(){
it('is confusing',function(){
expect(math(5,3)).toBe(14);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment