This commit is contained in:
Bruno Ribeito
2019-03-07 21:30:32 +00:00
parent f41146fb40
commit 525af9c36a
3 changed files with 14 additions and 6 deletions
@@ -9,17 +9,24 @@ import { DomRendererRowFactory } from './DomRendererRowFactory';
import { DEFAULT_ATTR, NULL_CELL_CODE, NULL_CELL_WIDTH, NULL_CELL_CHAR } from '../../Buffer';
import { FLAGS } from '../Types';
import { BufferLine } from '../../BufferLine';
import { IBufferLine } from '../../Types';
import { IBufferLine, ITerminal } from '../../Types';
import { DEFAULT_COLOR } from '../atlas/Types';
import { MockTerminal } from '../../ui/TestUtils.test';
describe('DomRendererRowFactory', () => {
let dom: jsdom.JSDOM;
let term: ITerminal;
let rowFactory: DomRendererRowFactory;
let lineData: IBufferLine;
beforeEach(() => {
dom = new jsdom.JSDOM('');
rowFactory = new DomRendererRowFactory(dom.window.document);
term = new MockTerminal();
term.options.enableBold = true;
term.options.drawBoldTextInBrightColors = true;
rowFactory = new DomRendererRowFactory(term, dom.window.document);
lineData = createEmptyLineData(2);
});