Skip to content

Commit

Permalink
WIP: Change isOk() to isTrue() in ripple test
Browse files Browse the repository at this point in the history
  • Loading branch information
acdvorak committed Feb 11, 2019
1 parent 7a336a6 commit 9e94771
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/mdc-ripple/mdc-ripple.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ test('adapter#browserSupportsCssVars delegates to util', () => {
test('adapter#isUnbounded delegates to unbounded getter', () => {
const {component} = setupTest();
component.unbounded = true;
assert.isOk(component.getDefaultFoundation().adapter_.isUnbounded());
assert.isTrue(component.getDefaultFoundation().adapter_.isUnbounded());
});

test('adapter#isSurfaceActive calls the correct :matches API method on the root element', () => {
Expand All @@ -126,7 +126,7 @@ test('adapter#isSurfaceActive calls the correct :matches API method on the root
ponyfill.matches = fakeMatches;

try {
assert.isOk(component.getDefaultFoundation().adapter_.isSurfaceActive());
assert.isTrue(component.getDefaultFoundation().adapter_.isSurfaceActive());
} finally {
ponyfill.matches = realMatches;
}
Expand All @@ -141,14 +141,14 @@ test('adapter#isSurfaceDisabled delegates to component\'s disabled getter', () =
test('adapter#addClass adds a class to the root', () => {
const {root, component} = setupTest();
component.getDefaultFoundation().adapter_.addClass('foo');
assert.isOk(root.classList.contains('foo'));
assert.isTrue(root.classList.contains('foo'));
});

test('adapter#removeClass removes a class from the root', () => {
const {root, component} = setupTest();
root.classList.add('foo');
component.getDefaultFoundation().adapter_.removeClass('foo');
assert.isNotOk(root.classList.contains('foo'));
assert.isFalse(root.classList.contains('foo'));
});

test('adapter#containsEventTarget returns true if the passed element is a descendant of the root element', () => {
Expand Down

0 comments on commit 9e94771

Please sign in to comment.