Skip to content

Commit

Permalink
Skip to-do tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bcameron1231 committed Apr 16, 2024
1 parent 3a9cf30 commit b8a22ed
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions test/graph/to-do.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import { ITaskList, ITodoTask } from "@pnp/graph/to-do";
import getValidUser from "./utilities/getValidUser.js";
import { IUser } from "@pnp/graph/users";

describe("To-do", function () {
//skipping all of together. We can create content, but can't delete. So it would create alot of unnecessary data

Check failure on line 11 in test/graph/to-do.ts

View workflow job for this annotation

GitHub Actions / run_pr_tests

Expected space or tab after '//' in comment
describe.skip("To-do", function () {
let user: IUser;
let taskList: ITaskList;
let todoTask: ITodoTask;
Expand Down Expand Up @@ -66,15 +67,15 @@ describe("To-do", function () {
return expect(passed).is.true;
}));

it("lists - update", pnpTest("9017c7b8-fb00-4a00-9ef0-51af695679a6", async function () {
it.skip("lists - update", pnpTest("9017c7b8-fb00-4a00-9ef0-51af695679a6", async function () {
const displayName = "Test " + getRandomString(5);
const updated = await taskList.update({
displayName: displayName,
});
return expect(updated.id).is.not.null && expect(updated.displayName).equal(displayName);
}));

it("lists - delete", pnpTest("ef561648-4380-4629-89bb-9834934e78d1", async function () {
it.skip("lists - delete", pnpTest("ef561648-4380-4629-89bb-9834934e78d1", async function () {
const list = await user.todo.lists.add({
displayName: "Test" + getRandomString(5),
});
Expand All @@ -99,7 +100,7 @@ describe("To-do", function () {
return expect(task.id).is.not.null;
}));

it("tasks - add", pnpTest("71958133-bd13-4bde-83c3-b8ea8871a466", async function () {
it.skip("tasks - add", pnpTest("71958133-bd13-4bde-83c3-b8ea8871a466", async function () {
let passed = false;
const task = await taskList.tasks.add({
title: "Test" + getRandomString(5),
Expand All @@ -112,15 +113,15 @@ describe("To-do", function () {
return expect(passed).is.true;
}));

it("tasks - update", pnpTest("c2071fbb-55d0-4837-a0d8-9a8bc6640f60", async function () {
it.skip("tasks - update", pnpTest("c2071fbb-55d0-4837-a0d8-9a8bc6640f60", async function () {
const title = "Test " + getRandomString(5);
const updated = await todoTask.update({
title: title,
});
return expect(updated.id).is.not.null && expect(updated.title).equal(title);
}));

it("tasks - delete", pnpTest("104adde8-6514-4b84-b711-ae360e971519", async function () {
it.skip("tasks - delete", pnpTest("104adde8-6514-4b84-b711-ae360e971519", async function () {
const task = await taskList.tasks.add({
title: "Test" + getRandomString(5),
});
Expand Down Expand Up @@ -152,7 +153,7 @@ describe("To-do", function () {
return expect(attachment.id).is.not.null;
}));

it("fileAttachments add small", pnpTest("1515ae48-15c4-4b0c-81a7-3afd4b83e601", async function () {
it.skip("fileAttachments add small", pnpTest("1515ae48-15c4-4b0c-81a7-3afd4b83e601", async function () {
const attachment = await todoTask.attachments.add(
{
"name": getRandomString(10),
Expand All @@ -163,7 +164,7 @@ describe("To-do", function () {
return expect(attachment.id).is.not.null;
}));

it("fileAttachments delete", pnpTest("6ab1d551-c0ef-4b6c-a444-ce3f49b777e6", async function () {
it.skip("fileAttachments delete", pnpTest("6ab1d551-c0ef-4b6c-a444-ce3f49b777e6", async function () {
const attachment = await todoTask.attachments.add(
{
"name": getRandomString(10),
Expand All @@ -190,7 +191,7 @@ describe("To-do", function () {
return expect(item.id).is.not.null;
}));

it("checklistItems - add", pnpTest("be7b039f-2de9-446a-8a3c-e3b8ea5ec237", async function () {
it.skip("checklistItems - add", pnpTest("be7b039f-2de9-446a-8a3c-e3b8ea5ec237", async function () {
let passed = false;
const newItem = await todoTask.checklistItems.add({
displayName:getRandomString(10),
Expand All @@ -203,7 +204,7 @@ describe("To-do", function () {
return expect(passed).is.true;
}));

it("checklistItems - update", pnpTest("9568305d-afea-43b1-89ad-5c3f5273383f", async function () {
it.skip("checklistItems - update", pnpTest("9568305d-afea-43b1-89ad-5c3f5273383f", async function () {
const title = "Test " + getRandomString(5);
const newItem = await todoTask.checklistItems.add({
displayName:getRandomString(10),
Expand All @@ -215,7 +216,7 @@ describe("To-do", function () {
return expect(updated.id).is.not.null && expect(updated.displayName).equal(title);
}));

it("checklistItems - delete", pnpTest("ff66aa6c-72e9-402e-9937-3a59fd61257f", async function () {
it.skip("checklistItems - delete", pnpTest("ff66aa6c-72e9-402e-9937-3a59fd61257f", async function () {
const newItem = await todoTask.checklistItems.add({
displayName:getRandomString(10),
});
Expand Down

0 comments on commit b8a22ed

Please sign in to comment.