Testing interactive resizing JS in Jasmine