Replace deprecated faker.datatype.uuid by faker.string.uuid

This commit is contained in:
Koen Vlaswinkel
2023-06-20 11:48:31 +02:00
parent d8c3410641
commit ff491bb706

View File

@@ -150,10 +150,10 @@ describe("Use cli", () => {
const getSession = jest
.spyOn(authentication, "getSession")
.mockResolvedValue({
id: faker.datatype.uuid(),
id: faker.string.uuid(),
accessToken: "gho_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
account: {
id: faker.datatype.uuid(),
id: faker.string.uuid(),
label: "Account",
},
scopes: ["read:packages"],