Permalink
Browse files

Moving from single to double quotes

Signed-off-by: Niels van Hoorn <nvh@nvh.io>
  • Loading branch information...
nvh committed Sep 15, 2016
1 parent cd5cbfa commit aedf25d8cf58ce50b71a820b8d20eaac19fbfaaf
View
@@ -112,7 +112,7 @@ log = (task, args...) ->
command = (cmd, cb) ->
exec cmd, {cwd: __dirname}, (err, stdout, stderr) ->
cb?(null, stdout.split('\n').join(''))
cb?(null, stdout.split("\n").join(""))
webpackDev = (name, config, callback) ->
webpackDev._instances ?= {}
@@ -11,7 +11,7 @@ fs = require "fs"
collectCoverage = (page) ->
console.log 'collecting...'
console.log "collecting..."
coverage = page.evaluate (() ->
# Collect the main coverage object from the browser:
@@ -37,4 +37,4 @@ collectCoverage = (page) ->
module.exports =
afterEnd: (runner) ->
collectCoverage(runner.page)
collectCoverage(runner.page)
@@ -16,13 +16,13 @@ describe "Align", ->
layer
describe "center", ->
it "should center the layer", ->
{child} = createAlignedLayers('x',Align.center)
{child} = createAlignedLayers("x",Align.center)
child.x.should.equal 200
{child} = createAlignedLayers('y',Align.center)
{child} = createAlignedLayers("y",Align.center)
child.y.should.equal 50
it "should work when the layer has no parent", ->
layer = new Layer
width: 100
@@ -31,76 +31,76 @@ describe "Align", ->
y: Align.center
layer.x.should.equal 150
layer.y.should.equal 75
it "should take borderWidth into account", ->
{child} = createAlignedLayers('x',Align.center,{borderWidth:30})
{child} = createAlignedLayers("x",Align.center,{borderWidth:30})
child.x.should.equal 170
{child} = createAlignedLayers('y',Align.center,{borderWidth:30})
{child} = createAlignedLayers("y",Align.center,{borderWidth:30})
child.y.should.equal 20
describe "left", ->
it "should left align the layer", ->
{child} = createAlignedLayers('x',Align.left)
{child} = createAlignedLayers("x",Align.left)
child.x.should.equal 0
it "should work when the layer has no parent", ->
layer = new Layer
width: 100
x: Align.left
layer.x.should.equal 0
it "should take borderWidth into account", ->
{child} = createAlignedLayers('x',Align.left,{borderWidth:30})
{child} = createAlignedLayers("x",Align.left,{borderWidth:30})
child.x.should.equal 0
describe "right", ->
it "should right align the layer", ->
{child} = createAlignedLayers('x',Align.right)
{child} = createAlignedLayers("x",Align.right)
child.x.should.equal 400
it "should work when the layer has no parent", ->
layer = new Layer
width: 100
x: Align.right
layer.x.should.equal 300
it "should take borderWidth into account", ->
{child} = createAlignedLayers('x',Align.right,{borderWidth:30})
{child} = createAlignedLayers("x",Align.right,{borderWidth:30})
child.x.should.equal 340
describe "top", ->
it "should top align the layer", ->
{child} = createAlignedLayers('y',Align.top)
{child} = createAlignedLayers("y",Align.top)
child.y.should.equal 0
it "should work when the layer has no parent", ->
layer = new Layer
height: 100
y: Align.top
layer.y.should.equal 0
it "should take borderWidth into account", ->
{child} = createAlignedLayers('y',Align.top,{borderWidth:30})
{child} = createAlignedLayers("y",Align.top,{borderWidth:30})
child.y.should.equal 0
describe "bottom", ->
it "should bottom align the layer", ->
{child} = createAlignedLayers('y',Align.bottom)
{child} = createAlignedLayers("y",Align.bottom)
child.y.should.equal 100
it "should work when the layer has no parent", ->
layer = new Layer
height: 100
y: Align.bottom
layer.y.should.equal 200
it "should take borderWidth into account", ->
{child} = createAlignedLayers('y',Align.bottom,{borderWidth:30})
{child} = createAlignedLayers("y",Align.bottom,{borderWidth:30})
child.y.should.equal 40
describe "constructors", ->
@@ -141,6 +141,6 @@ describe "Align", ->
height: 100
point: Align.center
size: 200
test.x.should.equal 50
test.y.should.equal 50
test.y.should.equal 50
@@ -200,7 +200,7 @@ describe "BaseClass", ->
instance = new TestClass()
instance.props =
testPropA: 'a'
testPropA: "a"
testPropB: true
instance.testPropA.should.equal "a"
@@ -64,7 +64,7 @@ describe "Color", ->
second = color[f](10)
first.isEqual(second).should.be.true
for f in ['lighten','brighten','darken','desaturate','saturate','grayscale']
for f in ["lighten", "brighten", "darken", "desaturate", "saturate", "grayscale"]
testModifyFunction(f)
it "should brighten color", ->
@@ -89,7 +89,7 @@ describe "LayerAnimation", ->
layer[p] = 50
properties = {}
properties[p] = '+=50'
properties[p] = "+=50"
layer.animate properties,
curve: "linear"
@@ -106,7 +106,7 @@ describe "LayerAnimation", ->
layer[p] = 50
properties = {}
properties[p] = '+=50'
properties[p] = "+=50"
layer.animate properties,
curve: "linear"
@@ -440,7 +440,7 @@ describe "LayerAnimation", ->
layer: @layer
x: 100
options:
curve: 'cubic-bezier'
curve: "cubic-bezier"
curveOptions:
time: 2
values: [0, 0, 0.58, 1]
@@ -454,10 +454,10 @@ describe "LayerAnimation", ->
layer: @layer
x: 100
options:
curve: 'cubic-bezier'
curve: "cubic-bezier"
curveOptions:
time: 2
values: 'ease-out'
values: "ease-out"
animation.start()
animation._animator.options.time.should.equal 2
@@ -468,8 +468,8 @@ describe "LayerAnimation", ->
layer: @layer
x: 100
options:
curve: 'cubic-bezier'
curveOptions: 'ease-out'
curve: "cubic-bezier"
curveOptions: "ease-out"
animation.start()
animation._animator.options.time.should.equal 1
@@ -481,8 +481,8 @@ describe "LayerAnimation", ->
x: 100
options:
time: 2
curve: 'cubic-bezier'
curveOptions: 'ease-out'
curve: "cubic-bezier"
curveOptions: "ease-out"
animation.start()
animation._animator.options.time.should.equal 2
@@ -494,7 +494,7 @@ describe "LayerAnimation", ->
x: 100
options:
time: 2
curve: 'cubic-bezier(0, 0, 0.58, 1)'
curve: "cubic-bezier(0, 0, 0.58, 1)"
animation.start()
animation._animator.options.time.should.equal 2
@@ -506,7 +506,7 @@ describe "LayerAnimation", ->
x: 100
options:
time: 2
curve: 'cubic-bezier'
curve: "cubic-bezier"
curveOptions: [0, 0, 0.58, 1]
animation.start()
@@ -520,7 +520,7 @@ describe "LayerAnimation", ->
layer: @layer
x: 100
options:
curve: 'linear'
curve: "linear"
time: 2
animation.start()
@@ -531,7 +531,7 @@ describe "LayerAnimation", ->
layer: @layer
x: 100
options:
curve: 'linear'
curve: "linear"
curveOptions:
time: 2
Oops, something went wrong.

0 comments on commit aedf25d

Please sign in to comment.