Functions/Get-Puppeteer_Delay.Tests.ps1
describe "BitTitan.Runbooks.UIAutomation/Get-Puppeteer_Delay" -Tag "module", "unit" { # Import the function to test . "$($PSScriptRoot)\Get-Puppeteer_Delay.ps1" it "returns the code for " { # Call the function $output = Get-Puppeteer_Delay -Milliseconds 1000 # Verify the output $output | Should Be "await delay(1000);" } } |