diff --git a/tests/FixJsImportPathsTest.php b/tests/FixJsImportPathsTest.php index d6c2b6d..d4da75b 100644 --- a/tests/FixJsImportPathsTest.php +++ b/tests/FixJsImportPathsTest.php @@ -32,7 +32,7 @@ public function fixes_imports() // Root files... $this->assertTrue(File::exists($this->tmpFolder.DIRECTORY_SEPARATOR.'app.js')); - $this->assertMatchesRegularExpression('#import ["\']bootstrap["\']\nimport ["\']libs["\']#', File::get($this->tmpFolder.DIRECTORY_SEPARATOR.'app.js')); + $this->assertMatchesRegularExpression('#import ["\']bootstrap["\']'.PHP_EOL.'import ["\']libs["\']#', File::get($this->tmpFolder.DIRECTORY_SEPARATOR.'app.js')); $this->assertMatchesRegularExpression('#import axios from ["\']axios["\']#', File::get($this->tmpFolder.DIRECTORY_SEPARATOR.'bootstrap.js')); // Libs folders...