Skip to content

Commit 77c596b

Browse files
committed
Updated E2E test to async API
1 parent 6d27d79 commit 77c596b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/clipboard.class.e2e.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import {NativeAdapter} from "./adapter/native.adapter.class";
22
import {Clipboard} from "./clipboard.class";
33

44
describe("Clipboard class", () => {
5-
it("should paste copied input from system clipboard.", () => {
5+
it("should paste copied input from system clipboard.", async () => {
66
const adapterMock = new NativeAdapter();
77
const SUT = new Clipboard(adapterMock);
88

99
const textToCopy = "bar";
1010

1111
SUT.copy(textToCopy);
12-
expect(SUT.paste()).toEqual(textToCopy);
12+
expect(await SUT.paste()).toEqual(textToCopy);
1313
});
1414
});

0 commit comments

Comments
 (0)