fix(viewFactory): allow empty view cache
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ export class IntegrationTestbed {
|
||||
var compiler = new Compiler(new DefaultStepFactory(parser, shadowDomStrategy), new FakeTemplateLoader(urlResolver, urlData));
|
||||
|
||||
if (isBlank(viewCacheCapacity)) {
|
||||
viewCacheCapacity = 1;
|
||||
viewCacheCapacity = 0;
|
||||
}
|
||||
if (isBlank(urlData)) {
|
||||
urlData = MapWrapper.create();
|
||||
|
||||
@@ -61,10 +61,10 @@ export function main() {
|
||||
shadowDomStrategy = new SpyShadowDomStrategy();
|
||||
});
|
||||
|
||||
it('should create views', () => {
|
||||
it('should create views without cache', () => {
|
||||
var pv = createProtoView();
|
||||
var vf = createViewFactory({
|
||||
capacity: 1
|
||||
capacity: 0
|
||||
});
|
||||
expect(vf.getView(pv) instanceof RenderView).toBe(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user