credential-store
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -72,2 +72,3 @@ 'use strict'; | ||
store (token) { | ||
if(!token) throw new Error('token must be provided'); | ||
@@ -74,0 +75,0 @@ if( typeof token !== 'string' ){ |
{ | ||
"name": "credential-store", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -63,2 +63,10 @@ const assert = require('assert'); | ||
}); | ||
it('should create a unique md5 hash when passed signature info', function(){ | ||
let tstore = new Tstore({ | ||
path: '$HOME/.bleep', | ||
signature: [123,456] | ||
}); | ||
}); | ||
}); | ||
@@ -134,3 +142,13 @@ | ||
}); | ||
it('should throw when called with no token', function(){ | ||
let tstore = new Tstore(); | ||
assert.throw(function(){ | ||
tstore.store(); | ||
}); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5598
168