diff options
-rw-r--r-- | tests/frontend/specs/font_type.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/frontend/specs/font_type.js b/tests/frontend/specs/font_type.js index 41b1de34..e5c65f2e 100644 --- a/tests/frontend/specs/font_type.js +++ b/tests/frontend/specs/font_type.js @@ -24,7 +24,8 @@ describe("font select", function(){ //check if font changed to monospace var fontFamily = inner$("body").css("font-family").toLowerCase(); - expect(fontFamily).to.be("courier new"); + var containsStr = fontFamily.indexOf("courier new"); + expect(containsStr).to.not.be(-1); done(); }); |