Skip to content

Instantly share code, notes, and snippets.

@dukex
Created April 3, 2011 04:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dukex/900170 to your computer and use it in GitHub Desktop.
Save dukex/900170 to your computer and use it in GitHub Desktop.
string_spec.js
String.prototype.reverse = function(){
return this.split("").reverse().join("");
}
describe("String", function () {
describe("reverse", function () {
it("should reverse 'ola mundo'", function () {
expect("ola mundo".reverse()).toEqual("odnum alo");
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment