diff options
author | Sam Light <sam@lightscale.co.uk> | 2025-04-01 21:08:29 +0100 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2025-04-01 21:08:29 +0100 |
commit | c7a5605d5966c32059b4a81198453e1c5e022e55 (patch) | |
tree | 7bbfe738de4a52cb8906329db7d7a765efa1dd68 | |
parent | 315b024db633d925993d1084add73322664849e4 (diff) |
Wrote test for queuing file not in manifestv0.0.3
-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); + }); }); |