Skip to content

Commit 681cb24

Browse files
committed
Format
1 parent 19eb255 commit 681cb24

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

dsc/tests/dsc_version.tests.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
# Licensed under the MIT License.
33

44
Describe 'tests for metadata versioning' {
5-
It 'returns the correct dsc semantic version in metadata' {
6-
$config_yaml = @"
5+
It 'returns the correct dsc semantic version in metadata' {
6+
$config_yaml = @"
77
`$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
88
resources:
99
- name: Echo
1010
type: Microsoft.DSC.Debug/Echo
1111
properties:
1212
output: 'Hello, World!'
1313
"@
14-
$out = $config_yaml | dsc config get -f - | ConvertFrom-Json
15-
$version = $out.metadata.'Microsoft.DSC'.version -as [System.Management.Automation.SemanticVersion]
16-
$version | Should -Not -BeNullOrEmpty
17-
$dscVersion = (dsc --version).Split(" ")[1]
18-
$version | Should -Be $dscVersion
19-
}
14+
$out = $config_yaml | dsc config get -f - | ConvertFrom-Json
15+
$version = $out.metadata.'Microsoft.DSC'.version -as [System.Management.Automation.SemanticVersion]
16+
$version | Should -Not -BeNullOrEmpty
17+
$dscVersion = (dsc --version).Split(" ")[1]
18+
$version | Should -Be $dscVersion
19+
}
2020
}

0 commit comments

Comments
 (0)