Skip to content

Commit

Permalink
Update copy_path_test.dart
Browse files Browse the repository at this point in the history
check content of copied linked file
  • Loading branch information
gmpassos authored Jan 16, 2025
1 parent 0d52438 commit 99b6b19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/io/test/copy_path_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ void main() {
expect(await expectedDir.exists(), isTrue);
expect(await expectedFile.exists(), isTrue);

expect(await expectedFile.readAsString(), 'original content',
reason: 'The file behind the link was copied with invalid content');

await expectedFile.writeAsString('new content');
final originalFile =
File(p.join(d.sandbox, _parentDir, linkSource, linkContent));
Expand All @@ -98,6 +101,9 @@ void main() {
expect(await expectedDir.exists(), isTrue);
expect(await expectedFile.exists(), isTrue);

expect(await expectedFile.readAsString(), 'original content',
reason: 'The file behind the link was copied with invalid content');

await expectedFile.writeAsString('new content');
final originalFile =
File(p.join(d.sandbox, _parentDir, linkSource, linkContent));
Expand Down

0 comments on commit 99b6b19

Please sign in to comment.