Skip to content

Commit

Permalink
fix: test desc
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Goo committed Oct 16, 2018
1 parent 92cb7c7 commit bd18aef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/mdc-radio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ If you are using a JavaScript framework, such as React or Angular, you can creat

Method Signature | Description
--- | ---
`setNativeControlDisabled() => void` | Sets the input to disabled
`setNativeControlDisabled(disabled: boolean) => void` | Sets the input's `disabled` property to the given value
`addClass(className: string) => void` | Adds a class to the root element
`removeClass(className: string) => void` | Removes a class from the root element

Expand Down
4 changes: 2 additions & 2 deletions test/unit/mdc-radio/mdc-radio.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ test('adapter#removeClass removes a class from the root element', () => {
assert.isFalse(root.classList.contains('foo'));
});

test('#adapter.setNativeControlDisabled sets the native control element disabled', () => {
test('#adapter.setNativeControlDisabled sets the native control element\'s disabled property to true', () => {
const {root, component} = setupTest();
const radio = root.querySelector(NATIVE_CONTROL_SELECTOR);

component.getDefaultFoundation().adapter_.setNativeControlDisabled(true);
assert.isTrue(radio.disabled);
});

test('#adapter.setNativeControlDisabled returns false when checkbox is not disabled', () => {
test('#adapter.setNativeControlDisabled sets the native control element\'s disabled property to false', () => {
const {root, component} = setupTest();
const radio = root.querySelector(NATIVE_CONTROL_SELECTOR);
radio.disabled = true;
Expand Down

0 comments on commit bd18aef

Please sign in to comment.