Functions/Get-Puppeteer_LogVariable.Tests.ps1

describe "BitTitan.Runbooks.UIAutomation/Get-Puppeteer_LogVariable" -Tag "module", "unit" {

    # Import the function to test
    . "$($PSScriptRoot)\Get-Puppeteer_LogVariable.ps1"

    it "returns the code for logging the value of a variable to the console" {
        # Call the function
        $output = Get-Puppeteer_LogVariable -VariableName "answer"

        # Verify the output
        $output | Should Be "console.log(answer);"
    }
}