UNPKG

wix-storybook-utils

Version:

Utilities for automated component documentation within Storybook

26 lines 911 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var drivers_1 = require("./drivers"); describe('PrimitiveDocumentation', function () { var driver = (0, drivers_1.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