Skip to content

Commit 6eaee7c

Browse files
committed
update URL check for DefaultDocumentLibrary to verify the correct endpoint is used
1 parent c9b59fe commit 6eaee7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/m365/spo/commands/list/list-get.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ describe(commands.LIST_GET, () => {
12861286
const defaultSiteList = { ...listResponse, BaseTemplate: 101, ParentWebUrl: "/", ListItemEntityTypeFullName: "SP.Data.Shared_x0020_DocumentsItem" };
12871287

12881288
sinon.stub(request, 'get').callsFake(async (opts: CliRequestOptions) => {
1289-
if (opts.url?.includes('https://contoso.sharepoint.com/_api/web/DefaultDocumentLibrary')) {
1289+
if (opts.url === 'https://contoso.sharepoint.com/_api/web/DefaultDocumentLibrary') {
12901290
return defaultSiteList;
12911291
}
12921292
else {

0 commit comments

Comments
 (0)