display history of topic updates on topic details page
[websub-hub] / test / src / template / histogram-svg.js
1 /* eslint-env mocha */
2 'use strict';
3
4 const assert = require('assert');
5 const template = require('../../../src/template/histogram-svg');
6
7 describe('Histogram SVG Template', function () {
8 let items, options;
9 beforeEach(function () {
10 items = [];
11 options = {};
12 });
13 it('covers defaults', function () {
14 const result = template(items, options);
15 assert(result);
16 });
17 it('covers options', function () {
18 items = [0, 1, 2];
19 options = {
20 labelX: 'Days Ago',
21 labelZero: 'Today',
22 tickEvery: 2,
23 frameColor: undefined,
24 labelHeight: 0,
25 };
26 const result = template(items, options);
27 assert(result);
28 });
29 });