statistical-js
Version:
Simple to use, completely useful
44 lines (39 loc) • 1.05 kB
JavaScript
;
const assert = require('chai').assert;
const statistical = require('../../src/statistical');
describe('Statistical', () => {
afterEach(() => {
statistical.settings = {
cache: {
enabled: true,
rootElementCount: 10,
subElementCount: 30
}
};
});
it('should return settings', () => {
assert.deepEqual(statistical.settings, {
cache: {
enabled: true,
rootElementCount: 10,
subElementCount: 30
}
});
});
it('should update settings', () => {
statistical.settings = {
cache: {
enabled: false,
rootElementCount: 100,
subElementCount: 300
}
};
assert.deepEqual(statistical.settings, {
cache: {
enabled: false,
rootElementCount: 100,
subElementCount: 300
}
});
});
});