codecombat/test/app/lib/world/thang.spec.coffee

15 lines
540 B
CoffeeScript
Raw Normal View History

2014-01-03 13:32:13 -05:00
describe 'Thang', ->
Thang = require 'lib/world/thang'
World = require 'lib/world/world'
Rectangle = require 'lib/world/rectangle'
Vector = require 'lib/world/vector'
world = new World()
#it 'intersects itself', ->
# spyOn(Vector, 'subtract').andCallThrough()
# for thang in world.thangs
# spyOn(thang, 'intersects').andCallThrough()
# expect(thang.intersects thang).toBeTruthy()
# #console.log thang.intersects.calls[0].args + ''
# #console.log "Vector.subtract calls: " + Vector.subtract.calls.length