Permalink
Browse files

¯\_(ツ)_/¯

😭
  • Loading branch information...
nvh committed Jul 21, 2017
1 parent 37d64cf commit 60c2b63a5f67caab9764b97426826842a1b927e0
Showing with 15 additions and 4 deletions.
  1. +15 −4 test/tests/UtilsTest.coffee
@@ -273,22 +273,29 @@ describe "Utils", ->
describe "loadWebFontConfig", ->
it "should resolve the promise if the font is loaded", (done) ->
# We skip the this test on CI, because I can't get the WebFont loading to work... :'(
if mocha.env.CI
@skip()
return
promise = Utils.loadWebFontConfig
custom:
families: ["Liberation Test"]
urls: ["static/fonts/liberation.css"]
families: ["Courier"]
promise.then ->
done()
return
it "should return true if the font is already correctly loaded", (done) ->
# We skip the this test on CI, because I can't get the WebFont loading to work... :'(
if mocha.env.CI
@skip()
return
promise = Utils.loadWebFontConfig
custom:
families: ["Liberation Sans"]
families: ["Arial"]
promise.then ->
result = Utils.loadWebFontConfig
custom:
families: ["Liberation Sans"]
families: ["Arial"]
result.should.equal true
done()
return
@@ -336,6 +343,10 @@ describe "Utils", ->
return
it "should not interfere with each other", (done) ->
# We skip the this test on CI, because I can't get the WebFont loading to work... :'(
if mocha.env.CI
@skip()
return
Utils.loadWebFont("Raleway")
roboto = Utils.loadWebFontConfig
google:

0 comments on commit 60c2b63

Please sign in to comment.