We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d27d79 commit 77c596bCopy full SHA for 77c596b
lib/clipboard.class.e2e.spec.ts
@@ -2,13 +2,13 @@ import {NativeAdapter} from "./adapter/native.adapter.class";
2
import {Clipboard} from "./clipboard.class";
3
4
describe("Clipboard class", () => {
5
- it("should paste copied input from system clipboard.", () => {
+ it("should paste copied input from system clipboard.", async () => {
6
const adapterMock = new NativeAdapter();
7
const SUT = new Clipboard(adapterMock);
8
9
const textToCopy = "bar";
10
11
SUT.copy(textToCopy);
12
- expect(SUT.paste()).toEqual(textToCopy);
+ expect(await SUT.paste()).toEqual(textToCopy);
13
});
14
0 commit comments