Skip to content

Commit 8e1691f

Browse files
committed
fix clipboard test
1 parent 685db08 commit 8e1691f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/navigator-clipboard.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('navigator clipboard', () => {
1616
expect(arr).to.have.lengthOf(1)
1717
expect(arr[0]).to.be.an.instanceof(globalThis.ClipboardItem)
1818
expect(arr[0].types).to.eql(['text/plain'])
19-
expect(await arr[0].getType('text/plain')).to.eql('foo')
19+
expect(await (await arr[0].getType('text/plain')).text()).to.eql('foo')
2020
})
2121
})
2222

0 commit comments

Comments
 (0)