diff --git a/test/glry.js b/test/glry.js index 77b1ebb..3a891a4 100644 --- a/test/glry.js +++ b/test/glry.js @@ -52,7 +52,7 @@ describe('glry', function () { it('should show error', function (done) { spyOn(options, 'load').and.returnValue('invalid.jpg'); options.onLoadEnd = function () { - expect(elm.querySelector('.error').style.display).toEqual('block'); + expect(elm.querySelector('.error').classList.contains('hidden')).toBeFalsy(); done(); }; glry = new Glry(options);