mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-28 20:55:52 -05:00
19 lines
430 B
JavaScript
19 lines
430 B
JavaScript
/**
|
|
* Tests for the Hosts chat plugin
|
|
* Written by Annika
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const assert = require('assert').strict;
|
|
const hosts = require('../../../dist/server/chat-plugins/hosts');
|
|
|
|
describe("Hosts plugin", () => {
|
|
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>`
|
|
);
|
|
});
|
|
});
|