Skip to content

Commit 54fd0d8

Browse files
committed
Update tests
1 parent 4316d9d commit 54fd0d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Test/PSZoom.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Mock -ModuleName $ModuleName Invoke-RestMethod {
5656

5757

5858
#Additional variables to use when testing
59-
$PSZoomToken = ConvertTo-SecureString -String 'faketoken' -AsPlainText -Force
59+
$Global:PSZoomToken = ConvertTo-SecureString -String 'faketoken' -AsPlainText -Force
6060
$AssistantId = 'TestAssistantId'
6161
$AssistantId2 = 'TestAssistantId2'
6262
$UserEmail = 'TestEmail@test.com'
@@ -76,7 +76,7 @@ $PageUrl = 'http://www.pageurltest.com'
7676
Describe 'PSZoom Core Tests' {
7777
Describe 'New-ZoomHeaders' {
7878
It 'Should create the correct headers' {
79-
$headers = New-ZoomHeaders -Token $PSZoomToken
79+
$headers = New-ZoomHeaders -Token $Global:PSZoomToken
8080
$headers.'content-type' | Should -Be 'application/json'
8181
$headers.'authorization' | Should -BeLike '*bearer*'
8282
}

0 commit comments

Comments
 (0)