Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[test] added regression test for extractVersions()

  • Loading branch information...
commit a0baaa60e518ebe18d9df78ad67127c5576a47ca 1 parent d25d84a
@fb55 fb55 authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/require-analyzer-test.js
View
9 test/require-analyzer-test.js
@@ -141,6 +141,15 @@ vows.describe('require-analyzer').addBatch({
"the isNative() method": {
"when passed native package": nativeSubjects,
"when passed non-native package": nonNativeSubjects
+ },
+ "the extractVersions() method": {
+ "when passed a version with a specified build": function(){
+ var result = analyzer.extractVersions({"a": "0.1.2-3", "b": "2.3.4-five"});
+ assert.deepEqual(result, {
+ "a": ">= 0.1.2-3",
+ "b": ">= 2.3.4-five"
+ });
+ }
}
}
}).export(module);

0 comments on commit a0baaa6

Please sign in to comment.
Something went wrong with that request. Please try again.