(#271) Move Jest timeout config out of test

This commit is contained in:
Simon Hofmann
2021-09-05 22:47:45 +02:00
parent 074d440280
commit 7bb773a0ab
+1 -1
View File
@@ -3,6 +3,7 @@ import { Key } from "./key.enum";
import { Keyboard } from "./keyboard.class";
jest.mock("./adapter/native.adapter.class");
jest.setTimeout(10000);
beforeEach(() => {
jest.resetAllMocks();
@@ -38,7 +39,6 @@ describe("Keyboard", () => {
it("should pass multiple input strings down to the type call.", async () => {
// GIVEN
jest.setTimeout(10000);
const adapterMock = new NativeAdapter();
const SUT = new Keyboard(adapterMock);
const payload = ["Test input!", "Array test2"];