replace jest with ava

This commit is contained in:
Robert Brignull 2020-05-04 18:50:13 +01:00
parent 27cc8b23fe
commit 0347b72305
11775 changed files with 84546 additions and 1440575 deletions

24
node_modules/concordance/lib/Registry.js generated vendored Normal file
View file

@ -0,0 +1,24 @@
'use strict'
class Registry {
constructor () {
this.counter = 0
this.map = new WeakMap()
}
has (value) {
return this.map.has(value)
}
get (value) {
return this.map.get(value).descriptor
}
alloc (value) {
const index = ++this.counter
const pointer = {descriptor: null, index}
this.map.set(value, pointer)
return pointer
}
}
module.exports = Registry