Skip to content

Commit a6cb7a6

Browse files
Fix StringCommandParameter
Update common lib where the following change is applied: when injector tries to resolve StringCommandParamater, it raises error as it's unable to use the current constructor. Add StringParameterBuilder class that is used to generate string parameters. Add createMandatoryParameter method to it, so it will generate mandatory parameter with specified error message. Add IStringParameterBuilder interface. The idea is to use stringParameter from injector resolver when the parameter will not be mandatory and to use the builder when a more complicated logic is needed. Also fixed FileSystemStub as it had to implement new method from IFileSystem
1 parent 74f1be7 commit a6cb7a6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

test/stubs.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ export class FileSystemStub implements IFileSystem {
115115
rename(oldPath: string, newPath: string): IFuture<void> {
116116
return undefined;
117117
}
118+
119+
symlink(sourePath: string, destinationPath: string): IFuture<void> {
120+
return undefined;
121+
}
118122
}
119123

120124
export class ErrorsStub implements IErrors {

0 commit comments

Comments
 (0)