@netdata/charts
Version:
Netdata frontend SDK and chart utilities
18 lines • 992 B
JavaScript
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
import * as tickers from "./index";
describe("tickers index", function () {
it("exports all ticker functions", function () {
expect(tickers.numericTicker).toBeDefined();
expect(tickers.heatmapTicker).toBeDefined();
});
it("exports functions for all tickers", function () {
expect(_typeof(tickers.numericTicker)).toBe("function");
expect(_typeof(tickers.heatmapTicker)).toBe("function");
});
it("exports correct number of tickers", function () {
var exportedKeys = Object.keys(tickers);
expect(exportedKeys).toHaveLength(2);
expect(exportedKeys).toContain("numericTicker");
expect(exportedKeys).toContain("heatmapTicker");
});
});