diff options
Diffstat (limited to 'tests/Feature/AssetsTest.php')
-rw-r--r-- | tests/Feature/AssetsTest.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/Feature/AssetsTest.php b/tests/Feature/AssetsTest.php index 9614eee..164cffb 100644 --- a/tests/Feature/AssetsTest.php +++ b/tests/Feature/AssetsTest.php @@ -114,4 +114,13 @@ describe('queuing files', function() use ($newManifest) { expect($assets->getQueuedHeadFiles())->toBeArray()->toHaveLength(1); }); + + test('queue file not in manifest', function() use ($newManifest) { + $assets = app(Assets::class); + $url = 'https://lightscale.co.uk/test.css'; + $assets->queueStyle($url); + $results = $assets->getQueuedHeadFiles(); + expect($results)->toBeArray()->toHaveLength(1); + expect($results[0]->getUrl())->toBe($url); + }); }); |