Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Kozlov authored and Max Kozlov committed Feb 4, 2025
1 parent 35a23e7 commit 75a8993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/GMGoogleDrive.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Describe "GMGoogleDrive" -Tag "Misc" {
Context "misc" {
It 'should load all functions' {
$Commands = Get-Command -CommandType Function -Module GMGoogleDrive | Select-Object -ExpandProperty Name
$Commands.Count | Should -Be 54
$Commands.Count | Should -Be 57
$Commands -contains 'Request-GDriveAuthorizationCode' | Should -Be $True
$Commands -contains 'Request-GDriveRefreshToken' | Should -Be $True
$Commands -contains 'Get-GDriveAccessToken' | Should -Be $True
Expand Down Expand Up @@ -213,7 +213,7 @@ Describe "Add-GDriveItem" -Tag "Item" {
$file4a.id | Should -Not -BeNullOrEmpty
$file4a.name | Should -Be $script:tmpItem.Name
$file4a.mimeType | Should -Be "text/plain"
$file4a.size | Should -Be 12
$file4a.size | Should -Be $script:tmpItem.Length
# on PSv5.1 times returned are strings
# on PSv7 times are datetime
# so let's convert it both to string
Expand Down

0 comments on commit 75a8993

Please sign in to comment.