Skip to content

Commit 257f941

Browse files
committed
Standardize path orders
1 parent fd80be8 commit 257f941

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/assets/DirectoryHandlerTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function testDefaultRoute()
2222
];
2323

2424
$paths = $this->assets->getPaths();
25+
sort($paths);
2526

2627
$this->assertEquals($expected, $paths);
2728
}
@@ -32,12 +33,13 @@ public function testBasicRoute()
3233

3334
$expected = [
3435
'alert.js',
35-
'styles.css',
36-
'factories/factories.css',
3736
'factories/edit/validate.js',
37+
'factories/factories.css',
38+
'styles.css',
3839
];
3940

4041
$paths = $this->assets->getPaths();
42+
sort($paths);
4143

4244
$this->assertEquals($expected, $paths);
4345
}
@@ -52,6 +54,7 @@ public function testBasicRouteWithoutAssets()
5254
];
5355

5456
$paths = $this->assets->getPaths();
57+
sort($paths);
5558

5659
$this->assertEquals($expected, $paths);
5760
}
@@ -62,12 +65,13 @@ public function testBasicRouteWithImplictAssets()
6265

6366
$expected = [
6467
'alert.js',
65-
'styles.css',
6668
'factories/factories.css',
6769
'factories/index/factoriesDataTable.js',
70+
'styles.css',
6871
];
6972

7073
$paths = $this->assets->getPaths();
74+
sort($paths);
7175

7276
$this->assertEquals($expected, $paths);
7377
}

0 commit comments

Comments
 (0)