I added a function that let's you create a menubar created out of an array of custom hastables.
Please tell us , the type of Change you are submiting:
Select one of the following:
[ ] Bug
[X] Feature
[ ] Minor Change
Description of what's been changed
Nothing, only added stuff.
Results of your tests (If applicable)
PS C:\Users\taabake4\Code\PSHTML\tests> invoke-pester .\New-PSHTMLMenu.Tests.ps1
____ __
/ __ \___ _____/ /____ _____
/ /_/ / _ \/ ___/ __/ _ \/ ___/
/ ____/ __(__ ) /_/ __/ /
/_/ \___/____/\__/\___/_/
Pester v4.9.0
Executing all tests in '.\New-PSHTMLMenu.Tests.ps1'
Executing script .\New-PSHTMLMenu.Tests.ps1
Context Testing PSHTML
Describing Testing New-PSHTMLMenu
[+] Should contain opening and closing tags 78ms
[+] Testing content in child element should contain 'Contact' 3ms
[+] Testing content in child element should contain 'Home' 4ms
[+] Testing content in child element should contain 'Adress' from the first Hashtable 7ms
[+] Testing content in child element should contain 'Adress' from the second Hashtable 13ms
[+] Testing content in child element should contain 'LinkStyle' from the first Hashtable 4ms
[+] Testing content in child element should contain 'LinkStyle' from the second Hashtable 5ms
[+] Testing content in child element should contain 'ID' from the first Hashtable 10ms
[+] Testing content in child element should contain 'ID' from the second Hashtable 10ms
[+] Testing content in child element should contain 'Class' from the first Hashtable 8ms
[+] Testing content in child element should contain 'Class' from the second Hashtable 4ms
[+] Testing common parameters: Class 9ms
[+] Testing common parameters: ID 7ms
[+] Testing common parameters: Style 5ms
Tests completed in 2.58s
Tests Passed: 14, Failed: 0, Skipped: 0, Pending: 0, Inconclusive: 0
Pull Request New-PSHTMLMenu
I added a function that let's you create a menubar created out of an array of custom hastables.
Please tell us , the type of Change you are submiting:
Select one of the following:
Description of what's been changed
Nothing, only added stuff.
Results of your tests (If applicable)