8000 test: config stub respect defaultValue · NativeScript/nativescript-cli@4e5c193 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e5c193

Browse files
committed
test: config stub respect defaultValue
1 parent d7330b0 commit 4e5c193

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/stubs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,8 @@ export class ProjectConfigServiceStub implements IProjectConfigService {
595595
return false;
596596
}
597597

598-
getValue(key: string): any {
599-
return _.get(this.readConfig(), key);
598+
getValue(key: string, defaultValue?: any): any {
599+
return _.get(this.readConfig(), key, defaultValue);
600600
}
601601

602602
setValue(key: string, value: SupportedConfigValues): any {

0 commit comments

Comments
 (0)
0