Avoid throwing intentional errors in DOMElementPool test

This commit is contained in:
Max Brunsfeld 2017-03-02 10:19:48 -08:00
parent c26509cfab
commit d6981dfcab

View File

@ -3,7 +3,10 @@ const DOMElementPool = require ('../src/dom-element-pool')
describe('DOMElementPool', function () {
let domElementPool
beforeEach(() => { domElementPool = new DOMElementPool() })
beforeEach(() => {
domElementPool = new DOMElementPool()
spyOn(atom, 'isReleasedVersion').andReturn(true)
})
it('builds DOM nodes, recycling them when they are freed', function () {
let elements