From 9127ee845301d25d16b35f6762936a192621aa19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Bj=C3=B8rn=20Michelsen?= Date: Mon, 12 Sep 2016 22:32:11 -0700 Subject: [PATCH] Fix test. --- test/glry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);