Skip to content

Commit

Permalink
cleanning 'http://' from link
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoLnx committed May 24, 2012
1 parent 0230d6e commit e308dce
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/unit/jasmine/spec/LinkCleanerSpec.js
@@ -0,0 +1,14 @@
describe("LinkCleaner", function() {
it("take out the \"http://\" of link", function() {
var cleaner = new LinkCleaner();

expect(cleaner.cleanHttp("http://caelum.com"))
.toEqual("caelum.com");

expect(cleaner.cleanHttp("caelum.com"))
.toEqual("caelum.com");

expect(cleaner.cleanHttp("https://caelum.com"))
.toEqual("caelum.com");
});
});

0 comments on commit e308dce

Please sign in to comment.