mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-25 01:14:02 -05:00
23 lines
466 B
JavaScript
23 lines
466 B
JavaScript
/**
|
|
* Tests for the Hosts chat plugin
|
|
* Written by Annika
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const assert = require('assert').strict;
|
|
let hosts;
|
|
|
|
describe("Hosts plugin", () => {
|
|
before(() => {
|
|
hosts = require('../../../.server-dist/chat-plugins/hosts');
|
|
});
|
|
|
|
it('should properly visualize an empty list of ranges', () => {
|
|
assert.strictEqual(
|
|
hosts.visualizeRangeList([]),
|
|
`<tr><th>Lowest IP address</th><th>Highest IP address</th><th>Host</th></tr>`
|
|
);
|
|
});
|
|
});
|