Skip to content

Commit

Permalink
Remove LinkedResource from tests
Browse files Browse the repository at this point in the history
Graph Docs show application permissions are not supported on linked resources.
  • Loading branch information
bcameron1231 committed Apr 16, 2024
1 parent eb1606b commit 3a9cf30
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/graph/to-do.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ describe("To-do", function () {
}
this.skip();
}));
it("linkedResources", pnpTest("200bb895-b956-4120-b3c5-a111d074285f", async function () {
it.skip("linkedResources", pnpTest("200bb895-b956-4120-b3c5-a111d074285f", async function () {
const resources = await todoTask.resources();
return expect(resources).to.be.an("array");
}));

it("linkedResources - getById()", pnpTest("88a91401-5851-4aea-a3d8-81adf37cabab", async function () {
it.skip("linkedResources - getById()", pnpTest("88a91401-5851-4aea-a3d8-81adf37cabab", async function () {
const resource = await todoTask.resources.add({
displayName:getRandomString(10),
applicationName: "PnPjs" + getRandomString(5),
Expand All @@ -238,7 +238,7 @@ describe("To-do", function () {
return expect(item.id).is.not.null;
}));

it("linkedResources - add", pnpTest("e7656849-41f0-4d8c-87a2-69591585ad73", async function () {
it.skip("linkedResources - add", pnpTest("e7656849-41f0-4d8c-87a2-69591585ad73", async function () {
let passed = false;
const task = await taskList.tasks.add({title: getRandomString(5)});
const resource = await taskList.tasks.getById(task.id).resources.add({
Expand All @@ -253,7 +253,7 @@ describe("To-do", function () {
return expect(passed).is.true;
}));

it("linkedResources - update", pnpTest("106acffe-5b35-408b-8879-8d420bbf30c3", async function () {
it.skip("linkedResources - update", pnpTest("106acffe-5b35-408b-8879-8d420bbf30c3", async function () {
const title = "Test " + getRandomString(5);
const task = await taskList.tasks.add({title: getRandomString(5)});
const resource = await taskList.tasks.getById(task.id).resources.add({
Expand All @@ -267,7 +267,7 @@ describe("To-do", function () {
return expect(updated.id).is.not.null && expect(updated.displayName).equal(title);
}));

it("linkedResources - delete", pnpTest("f5be23bd-972b-4c87-86f7-98de738c1257", async function () {
it.skip("linkedResources - delete", pnpTest("f5be23bd-972b-4c87-86f7-98de738c1257", async function () {
const task = await taskList.tasks.add({title: getRandomString(5)});
const resource = await taskList.tasks.getById(task.id).resources.add({
applicationName: "PnPjs" + getRandomString(10),
Expand Down

0 comments on commit 3a9cf30

Please sign in to comment.