Skip to content

Instantly share code, notes, and snippets.

@bielawb
Created December 28, 2020 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bielawb/0e077acb3b13861cb317027bbf91d318 to your computer and use it in GitHub Desktop.
Save bielawb/0e077acb3b13861cb317027bbf91d318 to your computer and use it in GitHub Desktop.
Blok Describe z BeforeEach
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