Skip to content

Commit

Permalink
feat: Import-ModuleMember ( Fixes #743 )
Browse files Browse the repository at this point in the history
Adding a lot of inner documentation and turning on Story generation.
  • Loading branch information
StartAutomating authored and StartAutomating committed Nov 28, 2023
1 parent 9806e5c commit 188dc8c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Tests/Examples/Import-ModuleMember.examples.tests.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

describe 'Import-ModuleMember' {
it 'Import-ModuleMember Example 1' {
$importedMembers = [PSCustomObject]@{
"Did you know you PowerShell can have commands with spaces" = {
"It's a pretty unique feature of the PowerShell language"
}
} | Import-ModuleMember -PassThru

$importedMembers # Should -BeOfType ([Management.Automation.PSModuleInfo])

& "Did you know you PowerShell can have commands with spaces" | Should -BeLike '*PowerShell*'
}
}

0 comments on commit 188dc8c

Please sign in to comment.