Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updating tests, minor correction to name;

  • Loading branch information...
commit 7c5f9a574eb20dc9aa1dc0409b4032ae58608a7e 1 parent 56112fd
@addyosmani authored
View
0  parsley.js → parsely.js
File renamed without changes
View
8 tests/spec/HelpersSpec.js
@@ -1,5 +1,5 @@
describe("Helpers", function(){
-var testUris = [
+var testUrls = [
["http:"],
["https://"],
["http://host"],
@@ -64,8 +64,10 @@ var testUris = [
["user:pass@host.com:81/direc.tory/file.ext?query=1&test=2#anchor"]
];
- it("", function(){
- expect(testArray.unique()).toEqual([]);
+ it("expect http: to be successfully pasred", function(){
+ var test = parsely(testUrls[0]);
+ expect(test.source).toEqual('http:');
+ expect(test.protocol).toEqual('http');
});
});
View
2  tests/test.html
@@ -3,7 +3,7 @@
<link rel="stylesheet" type="text/css" href="lib/jasmine-1.1.0/jasmine.css">
<script type="text/javascript" src="lib/jasmine-1.1.0/jasmine.js"></script>
<script type="text/javascript" src="lib/jasmine-1.1.0/jasmine-html.js"></script>
- <script type="text/javascript" charset="utf-8" src="../parsley.js"></script>
+ <script type="text/javascript" charset="utf-8" src="../parsely.js"></script>
<script type="text/javascript" charset="utf-8" src="spec/HelpersSpec.js"></script>
<script type="text/javascript">
(function() {
Please sign in to comment.
Something went wrong with that request. Please try again.