Blocking behaviour while typing fixed + added spinner (#6)

* Some README tweaks

* Next's staticProps blocking beheaviour while typing fixed + Added spinner

* Testing for previous fix

* Faker deprecational update
This commit is contained in:
David
2021-04-01 15:40:25 +02:00
committed by GitHub
parent e60be0663b
commit ea8c1bad57
10 changed files with 677 additions and 571 deletions

View File

@@ -20,7 +20,7 @@ describe("googleScrape", () => {
});
it("returns correct message on request error", async () => {
const status = faker.random.number({ min: 400, max: 499 });
const status = faker.datatype.number({ min: 400, max: 499 });
resolveFetchWith({ status });
const res = await googleScrape(source, target, query);
@@ -61,7 +61,7 @@ describe("extractSlug", () => {
it("returns empty object on 0 or >4 params", () => {
expect(extractSlug([])).toStrictEqual({});
const length = faker.random.number({ min: 4, max: 50 });
const length = faker.datatype.number({ min: 4, max: 50 });
const array = Array(length).fill("");
expect(extractSlug(array)).toStrictEqual({});
});
@@ -74,7 +74,7 @@ describe("textToSpeechScrape", () => {
});
it("returns 'null' on request error", async () => {
const status = faker.random.number({ min: 400, max: 499 });
const status = faker.datatype.number({ min: 400, max: 499 });
resolveFetchWith({ status });
expect(await textToSpeechScrape(target, query)).toBeNull();
});