Spaces:
Running
Running
File size: 430 Bytes
5c2ed06 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
/**
* 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>`
);
});
});
|