mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #4020 from NativeScript/buhov/path-fix
Fix relative path in a unit test
This commit is contained in:
@@ -180,7 +180,7 @@ export var testFileReadWriteBinary = function () {
|
||||
var fileName = "logo.png";
|
||||
var error;
|
||||
|
||||
var sourceFile = fs.File.fromPath(__dirname + "/" + fileName);
|
||||
var sourceFile = fs.File.fromPath(__dirname + "/../" + fileName);
|
||||
var destinationFile = fs.knownFolders.documents().getFile(fileName);
|
||||
|
||||
var source = sourceFile.readSync(e=> { error = e; });
|
||||
|
||||
Reference in New Issue
Block a user