also added test for uniqueid. only test that two calls to uniqueid return unique enties. had to modify the output slightly and added a counter to the system otherwise two back to back calls would return the same value.
13 lines
237 B
JavaScript
13 lines
237 B
JavaScript
var tape = require("tape")
|
|
|
|
var uniqueid = require("../../lib/uniqueid.js")
|
|
|
|
tape("test uniqueid", function(t) {
|
|
var a = uniqueid()
|
|
var b = uniqueid()
|
|
|
|
t.notEqual(a,b,"Two calls to uniqueid produce different values")
|
|
|
|
t.end()
|
|
})
|