Skip to content
Snippets Groups Projects
Commit edf88cfe authored by Travis Savo's avatar Travis Savo
Browse files

Adding the start of the body test

parent b131b6af
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -39,6 +39,7 @@
},
"devDependencies": {
"chai": "^3.5.0",
"chai-spies": "^0.7.1",
"codacy-coverage": "^2.0.0",
"codeclimate-test-reporter": "^0.4.0",
"coffee-coverage": "^1.0.1",
Loading
Loading
chai = require "chai"
expect = chai.expect
chai.should()
require("../src/bodyPart")
require('app-module-path').addPath(__dirname + '/../src')
require("bodyPart")
 
 
 
Loading
Loading
chai = require "chai"
spies = require('chai-spies')
chai.use spies
expect = chai.expect
chai.should()
require('app-module-path').addPath(__dirname + '/../src')
require("body")
describe "Human Body", ->
harnessBody = ->
new global.$game.classes.HumanBody({}, {language:"English"})
it "should be constructable", ->
harnessBody().should.not.be.undefined
it "should tell it's owner what it's told", ->
owner =
tell:chai.spy ->
body = new global.$game.classes.HumanBody owner,
language:"English"
body.tell "what"
owner.tell.should.have.been.called.with "what"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment