Skip to content

Commit 80a875c

Browse files
committed
fix: path test in windows
1 parent 7b29dd2 commit 80a875c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/Feature/HandlerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
$name = __DIR__ . '/../tmp/test';
88
$filename = DataExporter::csv([['a']])->saveAs($name);
99

10-
expect($filename)->toBe(dirname(__DIR__) . '/tmp/test.csv');
10+
expect(file_exists($filename))->toBeTrue()
11+
->and(file_exists($name . '.csv'))->toBeTrue();
1112
});
1213

1314
it('Handler with browserDownload', function () {

0 commit comments

Comments
 (0)