@forter/button
Advanced tools
Comparing version 5.1.10 to 5.1.11
@@ -6,2 +6,10 @@ # Change Log | ||
## [5.1.11](https://github.com/forter/web-components/compare/@forter/button@5.1.10...@forter/button@5.1.11) (2020-03-09) | ||
**Note:** Version bump only for package @forter/button | ||
## [5.1.10](https://github.com/forter/web-components/compare/@forter/button@5.1.9...@forter/button@5.1.10) (2020-02-05) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@forter/button", | ||
"version": "5.1.10", | ||
"version": "5.1.11", | ||
"description": "Button from Forter Components", | ||
@@ -51,3 +51,3 @@ "main": "index.js", | ||
"@forter/core": "^2.0.3", | ||
"@forter/icon": "^4.3.1", | ||
"@forter/icon": "^4.3.2", | ||
"@forter/mixins": "^3.0.0", | ||
@@ -59,3 +59,3 @@ "@forter/styles": "^4.1.0", | ||
}, | ||
"gitHead": "87716e298800395f12d233964b9a3a0663095670" | ||
"gitHead": "1075b4d09866edb0abd6dd1d991cd49b04ad340f" | ||
} |
@@ -1,62 +0,14 @@ | ||
import constant from 'crocks/combinators/constant'; | ||
import noop from 'crocks/helpers/unit'; | ||
import { assertWebComponentRender } from '@forter/test-helpers'; | ||
import { markdownToProperties } from '@forter/storybook-helpers'; | ||
import markdown from '../README.md'; | ||
import { | ||
assertA11y, | ||
assertInstantiation, | ||
assertRenderWithHTML, | ||
getDefaultExport, | ||
setupTestWithInput, | ||
} from '@forter/test-helpers'; | ||
import './fc-button'; | ||
import { FcButton } from './FcButton'; | ||
const tagName = 'fc-button'; | ||
const properties = markdownToProperties(FcButton, markdown); | ||
async function setupTest() { | ||
return setupTestWithInput({ | ||
tagName, | ||
properties: await import(`../test/fc-button/${this.test.parent.title}/input.json`) | ||
.then(getDefaultExport) | ||
.catch(constant({})), | ||
template: await import(`../test/fc-button/${this.test.parent.title}/template.html`) | ||
.then(getDefaultExport) | ||
.catch(noop), | ||
}); | ||
} | ||
async function assertRender() { | ||
const html = await import(`../test/fc-button/${this.test.parent.title}/expected.html`) | ||
.then(getDefaultExport) | ||
.catch(constant(`Could Not Find Expected ShadowDOM for "${this.test.parent.title}"`)); | ||
return assertRenderWithHTML(html); | ||
} | ||
describe(tagName, function() { | ||
it('Instantiates without error', assertInstantiation(tagName)); | ||
describe('default properties', function() { | ||
beforeEach(setupTest); | ||
it('renders expected shadow DOM', assertRender); | ||
}); | ||
describe('with icon', function() { | ||
beforeEach(setupTest); | ||
it('renders expected shadow DOM', assertRender); | ||
}); | ||
describe('with icon and label', function() { | ||
beforeEach(setupTest); | ||
it('renders expected shadow DOM', assertRender); | ||
it('passes basic a11y audit', assertA11y()); | ||
}); | ||
describe('with icon label and icon size', function() { | ||
beforeEach(setupTest); | ||
it('renders expected shadow DOM', assertRender); | ||
}); | ||
describe('with intent', function() { | ||
beforeEach(setupTest); | ||
it('renders expected shadow DOM', assertRender); | ||
}); | ||
}); | ||
describe(FcButton.is, assertWebComponentRender( | ||
FcButton.is, | ||
properties, | ||
{ ignoredRules: ['button-name'] } | ||
)); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154540
92
2413
Updated@forter/icon@^4.3.2