File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 2
2
# Licensed under the MIT License.
3
3
4
4
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 = @"
7
7
`$ schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
8
8
resources:
9
9
- name: Echo
10
10
type: Microsoft.DSC.Debug/Echo
11
11
properties:
12
12
output: 'Hello, World!'
13
13
"@
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
+ }
20
20
}
You can’t perform that action at this time.
0 commit comments