SequenceDiagram/scripts/sequence/themes/Basic_spec.mjs

19 lines
476 B
JavaScript

import {dom, textSizerFactory} from '../../../spec/stubs/TestDOM.mjs';
import {Factory} from './Basic.mjs';
import SVG from '../../svg/SVG.mjs';
describe('Basic Theme', () => {
const svg = new SVG(dom, textSizerFactory);
const themeFactory = new Factory();
const theme = themeFactory.build(svg);
it('has a name', () => {
expect(themeFactory.name).toEqual('basic');
});
it('contains settings for the theme', () => {
expect(theme.outerMargin).toEqual(5);
});
});