From 1524c1d65805ae8bdc8b78210194204dc7888f3f Mon Sep 17 00:00:00 2001 From: Matthew Costabile Date: Thu, 17 Oct 2024 12:59:54 +0000 Subject: [PATCH 1/2] requestIdleTimer might be 50 --- test/requestidlecallback.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }) }) From 8e1691f2de5f3e74f93f5d404c2eaf20aa35ec87 Mon Sep 17 00:00:00 2001 From: Matthew Costabile Date: Thu, 17 Oct 2024 13:02:40 +0000 Subject: [PATCH 2/2] fix clipboard test --- test/navigator-clipboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') }) })