[expo] add tests 2

This commit is contained in:
KonstantinKai
2017-11-21 16:00:14 +02:00
parent 1c8fbc21ef
commit 2f19225621
+11 -1
View File
@@ -185,7 +185,17 @@ async () => {
info.modificationTime;
}
const string = await FileSystem.readAsStringAsync('file');
const string: string = await FileSystem.readAsStringAsync('file');
await FileSystem.writeAsStringAsync('file', 'content');
await FileSystem.deleteAsync('file');
await FileSystem.moveAsync({ from: 'from', to: 'to'});
await FileSystem.copyAsync({ from: 'from', to: 'to' });
await FileSystem.makeDirectoryAsync('dir');
const dirs: string[] = await FileSystem.readDirectoryAsync('dir');
const result = await FileSystem.downloadAsync('from', 'to');
result.headers;
result.status;
result.uri;
result.md5;
};