Skip to content

Commit

Permalink
Remove redundant kuiSubmitButton tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Mar 28, 2017
1 parent 2fa3cf7 commit 8d4222a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,6 @@ exports[`KuiSubmitButton Baseline is rendered 1`] = `
/>
`;

exports[`KuiSubmitButton HTML attributes aria-label is rendered 1`] = `
<input
aria-label="aria label"
class="kuiButton"
type="submit"
/>
`;

exports[`KuiSubmitButton HTML attributes className renders the classes 1`] = `
<input
class="kuiButton testClass1 testClass2"
type="submit"
/>
`;

exports[`KuiSubmitButton HTML attributes data-test-subj is rendered 1`] = `
<input
class="kuiButton"
data-test-subj="test subject string"
type="submit"
/>
`;

exports[`KuiSubmitButton HTML attributes disabled sets the disabled attribute and class 1`] = `
<input
class="kuiButton kuiButton-isDisabled"
disabled=""
type="submit"
/>
`;

exports[`KuiSubmitButton Props children is rendered as value 1`] = `
<input
class="kuiButton"
Expand Down
46 changes: 0 additions & 46 deletions ui_framework/components/button/submit_button.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,52 +32,6 @@ describe('KuiSubmitButton', () => {
});
});

describe('HTML attributes', () => {
describe('aria-label', () => {
test('is rendered', () => {
const $button = render(
<KuiSubmitButton aria-label="aria label" />
);

expect($button)
.toMatchSnapshot();
});
});

describe('data-test-subj', () => {
test('is rendered', () => {
const $button = render(
<KuiSubmitButton data-test-subj="test subject string" />
);

expect($button)
.toMatchSnapshot();
});
});

describe('disabled', () => {
test('sets the disabled attribute and class', () => {
const $button = render(
<KuiSubmitButton disabled />
);

expect($button)
.toMatchSnapshot();
});
});

describe('className', () => {
test('renders the classes', () => {
const $button = render(
<KuiSubmitButton className="testClass1 testClass2" />
);

expect($button)
.toMatchSnapshot();
});
});
});

describe('Props', () => {
describe('type', () => {
describe('basic', () => {
Expand Down

0 comments on commit 8d4222a

Please sign in to comment.