warriorjs-engine
Version:
The bowels of WarriorJS
24 lines (18 loc) • 532 B
JavaScript
import chai from 'chai';
import Sludge from '../../src/units/Sludge';
import Melee from '../../src/units/Melee';
chai.should();
describe('Sludge', function () {
beforeEach(function () {
this.sludge = new Sludge();
});
it('should be a melee unit', function () {
this.sludge.should.be.instanceOf(Melee);
});
it('should have attack power of 3', function () {
this.sludge.attackPower.should.equal(3);
});
it('should have 12 max health', function () {
this.sludge.maxHealth.should.equal(12);
});
});