       done()
     host.commit()
 
-  it "generates headers matching the DMX512 specs",  ->
+  it "generates headers matching the DMX512 specs", ->
     assert.deepEqual data.slice(0, dmxHeaders.length), dmxHeaders
 
-  it "ends the buffer in the terminator character",  ->
+  it "ends the buffer in the terminator character", ->
     assert.equal data[data.length-1], 0xe7
 
 


assert = require "assert"

_  = require 'underscore'

enttec = require "../lib/enttec"

dmxHeaders = new Buffer [0x7e, 6, 0, 2]


    host.add new enttec.RGBLight address: 8
    host.add new enttec.RGBLight address: 16

  it "can have two lights added in tightly packed addresses", ->
    host.add new enttec.RGBLight address: 8
    host.add new enttec.RGBLight address: 13

  it "can have two lights added in tightly packed addresses (reverse order)", ->
    host.add new enttec.RGBLight address: 13
    host.add new enttec.RGBLight address: 8

  it "should throw if a new light added after an existing one overlaps with it", ->
    host.add new enttec.RGBLight address: 8
    assert.throws ->
      host.add new enttec.RGBLight address: 10

  it "should throw if a new light added before an existing one overlaps with it", ->
    host.add new enttec.RGBLight address: 8
    assert.throws ->
      host.add new enttec.RGBLight address: 5

  it "should throw if a new light is placed in the same address as an existing one",  ->
    host.add new enttec.RGBLight address: 8
    assert.throws ->
      host.add new enttec.RGBLight address: 8
