Clean up Pester tests
This commit is contained in:
16
Tests/Classes/MonitoredScript.Tests.ps1
Normal file
16
Tests/Classes/MonitoredScript.Tests.ps1
Normal file
@@ -0,0 +1,16 @@
|
||||
InModuleScope Chronometer {
|
||||
|
||||
Describe "Class: MonitoredScript" -Tag Build {
|
||||
|
||||
It "Creates an object" {
|
||||
{[MonitoredScript]::New()} | Should Not Throw
|
||||
}
|
||||
|
||||
It "SetScript()" {
|
||||
|
||||
$monitor = [MonitoredScript]::New()
|
||||
{$monitor.SetScript("$PSScriptRoot\..\..\scratchfiles\example.ps1")} | Should Not Throw
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user