Functions/Get-Puppeteer_LogMessage.Tests.ps1

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

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

    it "returns the code for logging a message to the console" {
        # Call the function
        $output = Get-Puppeteer_LogMessage -Message "Hello world!"

        # Verify the output
        $output | Should Be "console.log('Hello world!');"
    }
}