From b1dffc9eec6a692eb4b43ff5c73fc76f2261f925 Mon Sep 17 00:00:00 2001 From: Tyler Long Date: Tue, 12 Sep 2017 16:23:21 +0800 Subject: [PATCH] Fix styleSheets index issue --- src/utils.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.spec.js b/src/utils.spec.js index 97de73c3a..8ba4263d2 100644 --- a/src/utils.spec.js +++ b/src/utils.spec.js @@ -100,7 +100,7 @@ describe('when cloning CSS ', function () { svg.setAttribute('id', 'mermaid-01') // Firefox throws a SecurityError when trying to access cssRules - document.styleSheets[document.styleSheets.length] = { + document.styleSheets[document.styleSheets.length - 1] = { get cssRules () { throw new Error('SecurityError') } }