-
-
Save bielawb/0e077acb3b13861cb317027bbf91d318 to your computer and use it in GitHub Desktop.
Blok Describe z BeforeEach
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Describe 'Testujemy funkcję Get-PowerShellPLPost' { | |
BeforeAll { | |
Mock -CommandName Invoke-RestMethod -MockWith { | |
@( | |
@{ | |
title = 'test' | |
link = 'http://link.do/test' | |
pubDate = '2020-12-28 10:00' | |
} | |
) | |
} | |
} | |
# Nasze testy w blokach It | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment