pokemon-showdown/test/sim/tools/exhaustive-runner.js
Guangcong Luo f6f4467265 Turn on prefer-const for .js files
Not having prefer-const on the JS side makes JS -> TS refactors really
unreadable. This commit just auto-fixes it so we're using
`prefer-const` everywhere.
2020-04-23 11:37:47 -07:00

17 lines
454 B
JavaScript

'use strict';
const assert = require('assert').strict;
const {ExhaustiveRunner} = require('../../../.sim-dist/tools/exhaustive-runner');
describe('ExhaustiveRunner (slow)', async function () {
it('should run successfully', async function () {
this.timeout(0);
const opts = {prng: [1, 2, 3, 4]};
for (const format of ExhaustiveRunner.FORMATS) {
opts.format = format;
assert.equal(await (new ExhaustiveRunner(opts).run()), 0);
}
});
});