mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-25 08:38:09 -05:00
14 lines
540 B
CoffeeScript
14 lines
540 B
CoffeeScript
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
|