TF-1810 Add StoreDetailedEmailToCacheInteractor to store detailed email to cache

(cherry picked from commit 60a91537f7ea1225b5ca67f6dd9ef358b33939da)
This commit is contained in:
dab246
2023-05-10 12:06:20 +07:00
committed by Dat Vu
parent d6a5c88281
commit 892fceb037
28 changed files with 440 additions and 75 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ void main() {
test('Store private HTLM String to File', () async {
final file = await FileUtils().saveToFile(fileName, fileContent);
final file = await FileUtils().saveToFile(nameFile: fileName, content: fileContent);
expect(await file.exists(), equals(true));
@@ -28,9 +28,9 @@ void main() {
test('Get HTML String from File Private', () async {
/// Create a temporary file that will be deleted after `getFromFile` is done
final file = await FileUtils().saveToFile(fileName, fileContent);
final file = await FileUtils().saveToFile(nameFile: fileName, content: fileContent);
final htmlString = await FileUtils().getFromFile(fileName);
final htmlString = await FileUtils().getFromFile(nameFile: fileName);
expect(htmlString.isNotEmpty, equals(true));