Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@forter/button

Package Overview
Dependencies
Maintainers
3
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forter/button - npm Package Compare versions

Comparing version 5.1.10 to 5.1.11

test/active/expected-light.html

8

CHANGELOG.md

@@ -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 @@

6

package.json
{
"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'] }
));
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc