Browse Source

Format

pull/6121/head
Artur Arseniev 2 years ago
parent
commit
39bc4a4d90
  1. 8
      packages/core/src/dom_components/index.ts
  2. 6
      packages/core/test/specs/dom_components/index.ts

8
packages/core/src/dom_components/index.ts

@ -80,7 +80,13 @@ import ComponentTextNode from './model/ComponentTextNode';
import ComponentVideo from './model/ComponentVideo'; import ComponentVideo from './model/ComponentVideo';
import ComponentWrapper from './model/ComponentWrapper'; import ComponentWrapper from './model/ComponentWrapper';
import Components from './model/Components'; import Components from './model/Components';
import { AddComponentsOption, ComponentAdd, ComponentDefinition, ComponentDefinitionDefined, ComponentStackItem } from './model/types'; import {
AddComponentsOption,
ComponentAdd,
ComponentDefinition,
ComponentDefinitionDefined,
ComponentStackItem,
} from './model/types';
import ComponentCommentView from './view/ComponentCommentView'; import ComponentCommentView from './view/ComponentCommentView';
import ComponentFrameView from './view/ComponentFrameView'; import ComponentFrameView from './view/ComponentFrameView';
import ComponentImageView from './view/ComponentImageView'; import ComponentImageView from './view/ComponentImageView';

6
packages/core/test/specs/dom_components/index.ts

@ -369,7 +369,8 @@ describe('DOM Components', () => {
expect(docEl.get('htmlp')).toBe(true); expect(docEl.get('htmlp')).toBe(true);
expect(root.get('bodyp')).toBe(true); expect(root.get('bodyp')).toBe(true);
expect(root.doctype).toBe('<!DOCTYPE html>'); expect(root.doctype).toBe('<!DOCTYPE html>');
expect(root.toHTML()).toBe(flattenHTML(` expect(root.toHTML()).toBe(
flattenHTML(`
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" class="cls-html"> <html lang="en" class="cls-html">
<head class="cls-head"> <head class="cls-head">
@ -382,7 +383,8 @@ describe('DOM Components', () => {
<h1>H1</h1> <h1>H1</h1>
</body> </body>
</html> </html>
`)) `),
);
}); });
}); });

Loading…
Cancel
Save