mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-21 01:57:25 -05:00
24 lines
556 B
JavaScript
24 lines
556 B
JavaScript
'use strict';
|
|
|
|
const assert = require('./../../assert');
|
|
const common = require('./../../common');
|
|
|
|
let battle;
|
|
|
|
describe('Stance change', function () {
|
|
afterEach(function () {
|
|
battle.destroy();
|
|
});
|
|
|
|
it(`should change formes when Sleep Talk calls a move`, function () {
|
|
battle = common.createBattle([[
|
|
{species: "Aegislash", ability: 'stancechange', moves: ['sleeptalk', 'shadowclaw']},
|
|
], [
|
|
{species: "Kyurem", moves: ['spore']},
|
|
]]);
|
|
|
|
battle.makeChoices();
|
|
assert(battle.log.some(line => line.startsWith('|-formechange')));
|
|
});
|
|
});
|