Functions/Get-SharePointOnlineUrl.Tests.ps1
describe "BitTitan.Runbooks.SharePointOnline/Get-SharePointOnlineUrl" -Tag "module", "unit" { # Import the function to test . "$($PSScriptRoot)\Get-SharePointOnlineUrl.ps1" it "generates the url" { # Call the function $output = Get-SharePointOnlineUrl -OrganizationName "contoso" -UrlPath "sites" -UrlName "site123" # Verify the output $output | Should Be "https://contoso.sharepoint.com/sites/site123" } } |