Merge pull request #2527 from github/koesie10/replace-faker-uuid

Replace deprecated faker.datatype.uuid by faker.string.uuid
This commit is contained in:
Koen Vlaswinkel
2023-06-20 16:50:30 +02:00
committed by GitHub

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"],