Functions/Get-Puppeteer_OpenAsyncFunctionDeclaration.Tests.ps1
describe "BitTitan.Runbooks.UIAutomation/Get-Puppeteer_OpenAsyncFunctionDeclaration" -Tag "module", "unit" { # Import the function to test . "$($PSScriptRoot)\Get-Puppeteer_OpenAsyncFunctionDeclaration.ps1" it "returns the code for opening a new async function declaration" { # Call the function $output = Get-Puppeteer_OpenAsyncFunctionDeclaration -FunctionName "FooBar" # Verify the output $output | Should Be "async function FooBar() {" } } |