UNPKG

warriorjs-engine

Version:
24 lines (18 loc) 532 B
import chai from 'chai'; import Archer from '../../src/units/Archer'; import Ranged from '../../src/units/Ranged'; chai.should(); describe('Archer', function () { beforeEach(function () { this.archer = new Archer(); }); it('should be a ranged unit', function () { this.archer.should.be.instanceOf(Ranged); }); it('should have shoot power of 3', function () { this.archer.shootPower.should.equal(3); }); it('should have 7 max health', function () { this.archer.maxHealth.should.equal(7); }); });