Remove the test referencing publicOptions
This commit is contained in:
@@ -15,11 +15,6 @@ describe('OptionsService', () => {
|
|||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
console.error = originalError;
|
console.error = originalError;
|
||||||
});
|
});
|
||||||
it('publicOptions and options are modifying the same object', () => {
|
|
||||||
const optionsService = new OptionsService({ cols: undefined, rows: undefined });
|
|
||||||
optionsService.options.rows = 25;
|
|
||||||
assert.equal(optionsService.publicOptions.rows, 25);
|
|
||||||
});
|
|
||||||
it('uses default value if invalid constructor option values passed for cols/rows', () => {
|
it('uses default value if invalid constructor option values passed for cols/rows', () => {
|
||||||
const optionsService = new OptionsService({ cols: undefined, rows: undefined });
|
const optionsService = new OptionsService({ cols: undefined, rows: undefined });
|
||||||
assert.equal(optionsService.getOption('rows'), DEFAULT_OPTIONS.rows);
|
assert.equal(optionsService.getOption('rows'), DEFAULT_OPTIONS.rows);
|
||||||
|
|||||||
Reference in New Issue
Block a user