Skip to content

Commit 65e4bb8

Browse files
committed
fix tests
1 parent d1dc6af commit 65e4bb8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dsc/tests/dsc_function_list.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Describe 'Tests for function list subcommand' {
1919
$out.name | Should -BeExactly 'resourceId'
2020
$out.minArgs | Should -Be 2
2121
$out.maxArgs | Should -Be 2
22-
$out.acceptedArgTypes | Should -Be @('String')
22+
$out.returnTypes | Should -Be @('String')
2323
$out.description | Should -Not -BeNullOrEmpty
2424
}
2525
}

dsc/tests/dsc_functions.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Describe 'tests for function expressions' {
155155
$out = dsc -l trace config get -i $config_yaml 2>$TestDrive/error.log | ConvertFrom-Json
156156
if ($isError) {
157157
$LASTEXITCODE | Should -Be 2 -Because (Get-Content $TestDrive/error.log -Raw)
158-
(Get-Content $TestDrive/error.log -Raw) | Should -Match 'Invalid item to find, must be a string or number'
158+
(Get-Content $TestDrive/error.log -Raw) | Should -Match 'accepted types are: String, Number'
159159
} else {
160160
$LASTEXITCODE | Should -Be 0 -Because (Get-Content $TestDrive/error.log -Raw)
161161
($out.results[0].result.actualState.output | Out-String) | Should -BeExactly ($expected | Out-String)

dsc_lib/src/functions/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ pub struct FunctionDefinition {
263263
pub min_args: usize,
264264
#[serde(rename = "maxArgs")]
265265
pub max_args: usize,
266-
#[serde(rename = "returnType")]
266+
#[serde(rename = "returnTypes")]
267267
pub return_types: Vec<FunctionArgKind>,
268268
}
269269

0 commit comments

Comments
 (0)