mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-12-13 17:34:53 +00:00
larry babby and threejs for glsl
This commit is contained in:
18
webGl/my-threejs-test/node_modules/weak-lru-cache/tests/test.js
generated
vendored
Normal file
18
webGl/my-threejs-test/node_modules/weak-lru-cache/tests/test.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { WeakLRUCache } from '../index.js'
|
||||
import chai from 'chai'
|
||||
const assert = chai.assert
|
||||
let cache = new WeakLRUCache()
|
||||
|
||||
suite('WeakLRUCache basic tests', function(){
|
||||
test('add entries', function(){
|
||||
let entry = cache.getValue(2)
|
||||
assert.equal(entry, undefined)
|
||||
let obj = {}
|
||||
cache.setValue(2, obj)
|
||||
assert.equal(cache.getValue(2), obj)
|
||||
debugger
|
||||
if (cache.expirer.clean)
|
||||
cache.expirer.clean()
|
||||
assert.equal(cache.getValue(2), obj)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user