 {$} = require 'atom'
+
+path = require 'path'
 
 Table = require '../lib/table'
 TableView = require '../lib/table-view'

Row = require '../lib/row'
Cell = require '../lib/cell'

describe 'TableView', ->
  [tableView, table, nextAnimationFrame, noAnimationFrame, requestAnimationFrameSafe, styleNode] = []

  beforeEach ->
    spyOn(window, "setInterval").andCallFake window.fakeSetInterval

      table.addRow ["row#{i}", Math.random() * 100]

    tableView = new TableView(table)
    tableView.setRowHeight 20
    tableView.setRowOverdraw 10

    styleNode = $('body').append("<style>
      #{stylesheet}

      .table-edit {
        height: 200px;
      }
    </style>").find('style')

    $('body').append(tableView)

