pokemon-showdown/test/server/chat-plugins/hosts.js
Slayer95 4b8c6a4d6d
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
Refactor startup (#11346)
This minimizes side effects of import/require across the codebase,
and lets the caller be responsible of initializing child processeses,
as well as other async logic, such as restoring saved battles.
2025-10-17 19:37:47 -07:00

24 lines
468 B
JavaScript

/**
* Tests for the Hosts chat plugin
* Written by Annika
*/
'use strict';
const assert = require('assert').strict;
describe("Hosts plugin", () => {
let hosts = null;
before(() => {
hosts = require('../../../dist/server/chat-plugins/hosts');
});
it('should properly visualize an empty list of ranges', () => {
assert.equal(
hosts.visualizeRangeList([]),
`<tr><th>Lowest IP address</th><th>Highest IP address</th><th>Host</th></tr>`
);
});
});