wix-storybook-utils
Version:
Utilities for automated component documentation within Storybook
24 lines • 845 B
JavaScript
import { createPrimitiveDocumentationDriver } from './drivers';
describe('PrimitiveDocumentation', function () {
var driver = createPrimitiveDocumentationDriver();
var unit = {
description: 'some description',
name: 'wrapper',
};
beforeEach(function () {
driver.create({ unit: unit });
});
it('has primitives` name', function () {
expect(driver.get.name()).toBe(unit.name);
});
it('has primitives` description', function () {
expect(driver.get.description()).toBe(unit.description);
});
it('has name with tag td', function () {
expect(driver.get.tag('name')).toBe('td');
});
it('has description with tag td', function () {
expect(driver.get.tag('description')).toBe('td');
});
});
//# sourceMappingURL=primitive-documentation.test.js.map