Skip to content

Commit d38493c

Browse files
committed
Add missing arg to moveFile
1 parent e231092 commit d38493c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

windows/RNFS.Tests/RNFSManagerTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ public async Task RNFSManager_moveFile()
650650
// Run test
651651
var newPath = Path.Combine(tempFolder, Guid.NewGuid().ToString());
652652
var promise = new MockPromise();
653-
manager.moveFile(path, newPath, promise);
653+
manager.moveFile(path, newPath, new JObject(), promise);
654654
await promise.Task;
655655

656656
// Assert
@@ -674,7 +674,7 @@ public async Task RNFSManager_moveFile_NotExists()
674674
var path = Path.Combine(tempFolder, Guid.NewGuid().ToString());
675675
var newPath = Path.Combine(tempFolder, Guid.NewGuid().ToString());
676676
var promise = new MockPromise();
677-
manager.moveFile(path, newPath, promise);
677+
manager.moveFile(path, newPath, new JObject(), promise);
678678
await AssertRejectAsync(promise, ex => Assert.AreEqual("ENOENT", ex.Code));
679679
}
680680

windows/RNFS/RNFSManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ await Task.Run(() =>
285285
}
286286

287287
[ReactMethod]
288-
public void moveFile(string filepath, string destPath, IPromise promise)
288+
public void moveFile(string filepath, string destPath, JObject options, IPromise promise)
289289
{
290290
try
291291
{

0 commit comments

Comments
 (0)