Skip to content

Commit 6dd1b57

Browse files
Merge pull request #1108 from NativeScript/vladimirov/fix-copyFile
Fix fs copyFile when source and target are the same
2 parents 10dc999 + 3557378 commit 6dd1b57

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

test/stubs.ts

+4
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ export class FileSystemStub implements IFileSystem {
164164
readStdin(): IFuture<string> {
165165
return undefined;
166166
}
167+
168+
renameIfExists(oldPath: string, newPath: string): IFuture<boolean> {
169+
return undefined;
170+
}
167171
}
168172

169173
export class ErrorsStub implements IErrors {

0 commit comments

Comments
 (0)