diff --git a/test/navigator-clipboard.js b/test/navigator-clipboard.js index e20754e..82641c1 100644 --- a/test/navigator-clipboard.js +++ b/test/navigator-clipboard.js @@ -16,7 +16,7 @@ describe('navigator clipboard', () => { expect(arr).to.have.lengthOf(1) expect(arr[0]).to.be.an.instanceof(globalThis.ClipboardItem) expect(arr[0].types).to.eql(['text/plain']) - expect(await arr[0].getType('text/plain')).to.eql('foo') + expect(await (await arr[0].getType('text/plain')).text()).to.eql('foo') }) }) diff --git a/test/requestidlecallback.js b/test/requestidlecallback.js index dd78f8c..07769a4 100644 --- a/test/requestidlecallback.js +++ b/test/requestidlecallback.js @@ -14,6 +14,6 @@ describe('requestIdleCallback', () => { expect(Object.keys(arg)).to.eql(['didTimeout', 'timeRemaining']) expect(arg).to.have.property('didTimeout').to.be.a('boolean') expect(arg).to.have.property('timeRemaining').to.be.a('function') - expect(arg.timeRemaining()).to.be.a('number').lessThan(50).greaterThanOrEqual(0) + expect(arg.timeRemaining()).to.be.a('number').lessThanOrEqual(50).greaterThanOrEqual(0) }) })