From 9e94771d824d838d48b8336aa2f3de37ed93cea0 Mon Sep 17 00:00:00 2001 From: Andy Dvorak Date: Mon, 11 Feb 2019 10:49:02 -0800 Subject: [PATCH] WIP: Change `isOk()` to `isTrue()` in ripple test --- test/unit/mdc-ripple/mdc-ripple.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/mdc-ripple/mdc-ripple.test.js b/test/unit/mdc-ripple/mdc-ripple.test.js index ae5ffa73d2b..8bb6d157e5d 100644 --- a/test/unit/mdc-ripple/mdc-ripple.test.js +++ b/test/unit/mdc-ripple/mdc-ripple.test.js @@ -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', () => { @@ -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; } @@ -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', () => {