pokemon-showdown/test/sim/tools/multi-random-runner.js
Guangcong Luo 229f5f809d Use assert in strict mode
This makes it so we can use `assert.equal` instead of
`assert.strictEqual`, which I think is more readable.
2020-02-20 00:39:31 -08:00

14 lines
395 B
JavaScript

'use strict';
const assert = require('assert').strict;
const {MultiRandomRunner} = require('../../../.sim-dist/tools/multi-random-runner');
describe('MultiRandomRunner (slow)', async function () {
it('should run successfully', async function () {
this.timeout(0);
const opts = {totalGames: 100, prng: [1, 2, 3, 4]};
assert.equal(await (new MultiRandomRunner(opts).run()), 0);
});
});