Explorar el Código

test: fix LRU upgrade

Evan You hace 7 años
padre
commit
d278da20a0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      test/ssr/ssr-bundle-render.spec.js

+ 1 - 1
test/ssr/ssr-bundle-render.spec.js

@@ -195,7 +195,7 @@ function createAssertions (runInNewContext) {
   })
   })
 
 
   it('render with cache (nested)', done => {
   it('render with cache (nested)', done => {
-    const cache = LRU({ maxAge: Infinity })
+    const cache = new LRU({ maxAge: Infinity })
     spyOn(cache, 'get').and.callThrough()
     spyOn(cache, 'get').and.callThrough()
     spyOn(cache, 'set').and.callThrough()
     spyOn(cache, 'set').and.callThrough()
     const options = {
     const options = {