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.
9 lines
171 B
JavaScript
9 lines
171 B
JavaScript
module.exports = (function() {
|
|
var counter = 0
|
|
return function() {
|
|
var id = ("pjax" + (new Date().getTime())) + "_" + counter
|
|
counter++
|
|
return id
|
|
}
|
|
})()
|