pure-uuid
Advanced tools
Comparing version 1.4.1 to 1.4.2
{ | ||
"name": "pure-uuid", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"homepage": "http://github.com/rse/pure-uuid", | ||
@@ -5,0 +5,0 @@ "description": "Pure JavaScript Based Universally Unique Identifier (UUID)", |
@@ -5,3 +5,3 @@ { | ||
"description": "Pure JavaScript Based Universally Unique Identifier (UUID)", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -105,3 +105,9 @@ /* | ||
}); | ||
it("should be able to detect errors", function () { | ||
expect(function () { new UUID().parse("00000000-0000-0000-0000-000000000000"); }) | ||
.to.not.throw(Error); | ||
expect(function () { new UUID().parse("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); }) | ||
.to.throw(Error); | ||
}); | ||
}); | ||
55508
1121