mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-02 03:47:09 -05:00
15 lines
540 B
CoffeeScript
15 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
|