-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from vrk-kpa/develop
Release 0.2.4
- Loading branch information
Showing
58 changed files
with
611 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
|
||
if (process.env.NODE_ENV !== 'production') { | ||
var axe = require('react-axe'); | ||
axe(React, ReactDOM, 1000); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
|
||
import '../src/core/theme/fontFaces.css'; | ||
|
||
if (process.env.NODE_ENV !== 'production') { | ||
var axe = require('react-axe'); | ||
axe(React, ReactDOM, 1000); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
import React from 'react'; | ||
import { render } from 'react-testing-library'; | ||
import { axeTest } from '../../utils/test/axe'; | ||
|
||
import { Block } from './Block'; | ||
|
||
const TestBlock = ( | ||
<div data-testid="test-block"> | ||
<Block>Hey this is test</Block> | ||
<Block padding="xl">Hey this is test lead</Block> | ||
<Block.section>Hey this is test bold</Block.section> | ||
</div> | ||
); | ||
|
||
test('calling render with the same component on the same container does not remount', () => { | ||
const BlockRendered = render( | ||
<div data-testid="test-block"> | ||
<Block>Hey this is test</Block> | ||
<Block padding="xl">Hey this is test lead</Block> | ||
<Block.section>Hey this is test bold</Block.section> | ||
</div>, | ||
); | ||
const BlockRendered = render(TestBlock); | ||
const { container } = BlockRendered; | ||
expect(container.firstChild).toMatchSnapshot(); | ||
}); | ||
|
||
test('should not have basic accessibility issues', axeTest(TestBlock)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
import React from 'react'; | ||
import { render } from 'react-testing-library'; | ||
import { axeTest } from '../../utils/test/axe'; | ||
|
||
import { Breadcrumb } from './Breadcrumb'; | ||
|
||
const TestBreadcrumb = ( | ||
<Breadcrumb data-testid="Breadcrumb" aria-label="breadcrumb"> | ||
<Breadcrumb.link href="/">Frontpage</Breadcrumb.link> | ||
<Breadcrumb.link href="/sub">Sub page</Breadcrumb.link> | ||
<Breadcrumb.link current={true}>Sub sub page</Breadcrumb.link> | ||
</Breadcrumb> | ||
); | ||
|
||
test('calling render with the same component on the same container does not remount', () => { | ||
const BreadcrumbRendered = render( | ||
<Breadcrumb data-testid="Breadcrumb" aria-label="breadcrumb"> | ||
<Breadcrumb.link href="/">Frontpage</Breadcrumb.link> | ||
<Breadcrumb.link href="/sub">Sub page</Breadcrumb.link> | ||
<Breadcrumb.link current={true}>Sub sub page</Breadcrumb.link> | ||
</Breadcrumb>, | ||
); | ||
const BreadcrumbRendered = render(TestBreadcrumb); | ||
const { container } = BreadcrumbRendered; | ||
expect(container.firstChild).toMatchSnapshot(); | ||
}); | ||
|
||
test('should not have basic accessibility issues', axeTest(TestBreadcrumb)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.