 "use strict"
 
 Grid = require "./../../lib/grid"
-Canvas = require "canvas"
 
 describe "getCenterXY", ->
   it "expects tile options", ->

    expect(grid.tileSize).toBeDefined()
    expect(grid.pointyTiles).toBeDefined()

  it "calculates pixel coordinates for canvas based on tile and grid options", ->
    canvas = new Canvas(1,1)
    context = canvas.getContext("2d")
    grid = new Grid(context)

    grid.tileSpacing = 0
    grid.tileSize = 100


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

  it "expects grid options", ->
    expect(@grid.withOrigin).toBeDefined()
