up
This commit is contained in:
parent
4ae129054e
commit
ab9ab64bd5
476 changed files with 3370 additions and 532 deletions
|
@ -0,0 +1,25 @@
|
|||
describe("army", function() {
|
||||
|
||||
let army;
|
||||
|
||||
before(function() {
|
||||
army = makeArmy();
|
||||
window.alert = sinon.stub(window, "alert");
|
||||
});
|
||||
|
||||
it("army[0] shows 0", function() {
|
||||
army[0]();
|
||||
assert(alert.calledWith(0));
|
||||
});
|
||||
|
||||
|
||||
it("army[5] shows 5", function() {
|
||||
army[5]();
|
||||
assert(alert.calledWith(5));
|
||||
});
|
||||
|
||||
after(function() {
|
||||
window.alert.restore();
|
||||
});
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue