Permalink
Browse files

Not using Utils.loadWebFont in TextLayerTests

  • Loading branch information...
nvh committed Sep 8, 2017
1 parent e399eba commit 9f0dc990eae58f37705702ceffe80d022692a77e
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/tests/TextLayerTest.coffee
@@ -484,13 +484,13 @@ describe "TextLayer", ->
describe "Fonts", ->
it "sets the weight if the font property is set", ->
l = new TextLayer
font: Utils.loadWebFont("Raleway", 800)
font: {fontFamily: "Raleway", fontWeight: 800}
l.fontFamily.should.equal "Raleway"
l.fontWeight.should.equal 800
it "doesn't set the weight if the fontFamily property is set", ->
l = new TextLayer
fontFamily: Utils.loadWebFont("Raleway", 800)
fontFamily: {fontFamily: "Raleway", fontWeight: 800}
l.fontFamily.should.equal "Raleway"
expect(l.fontWeight).to.equal 400

0 comments on commit 9f0dc99

Please sign in to comment.