 
 describe "axialDistance", ->
   beforeEach ->
-    @grid = new Grid()
+    @grid = new Grid
 
   it "distance from (0,0) to (0,0) is 0", ->
     result = @grid.axialDistance(0, 0, 0, 0)


describe "hexagon", ->
  beforeEach ->
    @grid = new Grid()

  it "returns coordinates for a solid hexagonal shape stretching two (2) tiles from center", ->
    result = @grid.hexagon(-1, -1, 2, true)


describe "pixelToAxial", ->
  it "returns q and r from pixels coordinates and scale", ->
    grid = new Grid
    expect(grid.pixelToAxial(0, -150)).toEqual({ q: 0, r: 1 })
    expect(grid.pixelToAxial(-150, 0)).toEqual({ q: -1, r: 1 })
    expect(grid.pixelToAxial(0, 150)).toEqual({ q: 0, r: -1 })
