Skip to content

Commit

Permalink
Linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bcameron1231 committed Apr 12, 2024
1 parent 268607b commit b2f5318
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/graph/contacts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ export class _ContactFolders extends _GraphCollection<IContactFolderType[]> {
}
}
export interface IContactFolders extends _ContactFolders, IGetById<IContactFolder> { }
export const ContactFolders = graphInvokableFactory<IContactFolders>(_ContactFolders);
export const ContactFolders = graphInvokableFactory<IContactFolders>(_ContactFolders);
2 changes: 1 addition & 1 deletion packages/graph/groups/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ export class _Groups extends _DirectoryObjects<IGroupType[]> {
}
}
export interface IGroups extends _Groups, IGetById<IGroup> { }
export const Groups = graphInvokableFactory<IGroups>(_Groups);
export const Groups = graphInvokableFactory<IGroups>(_Groups);
2 changes: 1 addition & 1 deletion packages/graph/list-item/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export {
IDocumentSetVersion,
DocumentSetVersion,
DocumentSetVersions,
IDocumentSetVersions
IDocumentSetVersions,
} from "./types.js";
2 changes: 1 addition & 1 deletion packages/graph/list-item/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ export const DocumentSetVersion = graphInvokableFactory<IDocumentSetVersion>(_Do
@addable()
export class _DocumentSetVersions extends _GraphCollection<IDocumentSetVersionEntity[]>{}
export interface IDocumentSetVersions extends _DocumentSetVersions, IGetById<IDocumentSetVersion>, IAddable<IDocumentSetVersionEntity> {}
export const DocumentSetVersions = graphInvokableFactory<IDocumentSetVersions>(_DocumentSetVersions);
export const DocumentSetVersions = graphInvokableFactory<IDocumentSetVersions>(_DocumentSetVersions);
2 changes: 1 addition & 1 deletion packages/graph/lists/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export {
Lists,
ILists,
List,
IList
IList,
} from "./types.js";
2 changes: 1 addition & 1 deletion packages/sp/appcatalog/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ export class _App extends _SPInstance {
}
}
export interface IApp extends _App { }
export const App = spInvokableFactory<IApp>(_App);
export const App = spInvokableFactory<IApp>(_App);
4 changes: 2 additions & 2 deletions packages/sp/site-users/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ export const SiteUser = spInvokableFactory<ISiteUser>(_SiteUser);

export interface ISiteUserInfo {

Id: number,
IsHiddenInUI: boolean,
Id: number;
IsHiddenInUI: boolean;
LoginName: string;
Title: string;
PrincipalType: number;
Expand Down
1 change: 0 additions & 1 deletion packages/sp/webs/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
} from "../spqueryable.js";
import { defaultPath } from "../decorators.js";
import { IChangeQuery } from "../types.js";
import { odataUrlFrom } from "../utils/odata-url-from.js";
import { extractWebUrl } from "../utils/extract-web-url.js";
import { combine, isArray } from "@pnp/core";
import { encodePath } from "../utils/encode-path-str.js";
Expand Down
2 changes: 1 addition & 1 deletion test/sp/column-defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ describe("DefaultColumnValues", function () {
name: "MultiChoiceField",
value: ["Item 1", "Item 2"],
}]);

const defaults = await folder.getDefaultColumnValues();

expect(defaults.length).to.be.eq(3);
Expand Down
2 changes: 1 addition & 1 deletion test/sp/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "@pnp/sp/sharing";
import "@pnp/sp/site-users/web";
import "@pnp/sp/files";
import { getRandomString, combine } from "@pnp/core";
import { IFiles, TemplateFileType, fileFromPath, fileFromServerRelativePath } from "@pnp/sp/files";
import { IFiles, TemplateFileType } from "@pnp/sp/files";
import { readFileSync } from "fs";
import { resolve, dirname } from "path";
import findupSync from "findup-sync";
Expand Down
6 changes: 3 additions & 3 deletions test/sp/folders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ describe("Folder", function () {
));

it("getItem", async function () {
var folderName = `test${getRandomString(4)}`;
const folderName = `test${getRandomString(4)}`;
const far = await this.pnp.sp.web.rootFolder.folders.getByUrl("SiteAssets").folders.addUsingPath(folderName);
const x = await this.pnp.sp.web.rootFolder.folders.getByUrl("SiteAssets").folders.getByUrl(far.Name).getItem();
return expect(x).to.haveOwnProperty("Id");
});

it("getItem - call list", async function () {
var folderName = `test${getRandomString(4)}`;
const folderName = `test${getRandomString(4)}`;
const far = await this.pnp.sp.web.rootFolder.folders.getByUrl("SiteAssets").folders.addUsingPath(folderName);
const x = await this.pnp.sp.web.rootFolder.folders.getByUrl("SiteAssets").folders.getByUrl(far.Name).getItem();
const y = await x.list();
Expand Down Expand Up @@ -219,7 +219,7 @@ describe("Folder", function () {
const user = await this.pnp.sp.web.ensureUser("everyone except external users");
const login = user.LoginName;
const folderName = `folder_${getRandomString(4)}`; const folders = this.pnp.sp.web.rootFolder.folders.getByUrl("SiteAssets").folders;
const far = await folders.addUsingPath(folderName);
const far = await folders.addUsingPath(folderName);
return expect(folders.getByUrl(far.Name).shareWith(login)).to.eventually.be.fulfilled;
});

Expand Down
2 changes: 1 addition & 1 deletion test/sp/lists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ describe("List", function () {
it("renderListFormData", async function () {

const listEnsure = await this.pnp.sp.web.lists.ensure("pnp testing renderListFormData");

const list = this.pnp.sp.web.lists.getById(listEnsure.Id);
await list.items.add({
Title: "Item 1",
});
Expand Down
2 changes: 1 addition & 1 deletion test/sp/site-scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe("SiteScripts", function () {
it("getSiteScript (list)", async function () {
const listTitle = `sc_list_${getRandomString(8)}`;
const listResult = await _rootSite.web.lists.add(listTitle);
const list = _rootSite.web.lists.getById(listResult.Id)
const list = _rootSite.web.lists.getById(listResult.Id);
createdLists.push(list);

return expect(list.getSiteScript(),
Expand Down
2 changes: 1 addition & 1 deletion test/sp/site-users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe("Site Users", function () {
const _props: ISiteUserProps = await this.pnp.sp.web.currentUser();
_props.Title = "Changed Title";
await this.pnp.sp.web.currentUser.update(_props);
const _newProps = await this.pnp.sp.web.currentUser()
const _newProps = await this.pnp.sp.web.currentUser();
return expect(_newProps.Title).to.be.eq("Changed Title");
});
});
Expand Down

0 comments on commit b2f5318

Please sign in to comment.