diff options
| author | Sam Light <sam@lightscale.co.uk> | 2025-03-31 20:00:49 +0100 | 
|---|---|---|
| committer | Sam Light <samlight1994@gmail.com> | 2025-03-31 20:00:49 +0100 | 
| commit | b665c128ba6c650056305d7596d850c4aff2b59e (patch) | |
| tree | 08c0b8953e0d72cb40537075e863e3b960e46d86 /tests | |
| parent | 2d7ab00d1f2fa7aee14352e0b5ce3bfd804d7baa (diff) | |
Manifest parser test improvements
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Unit/ManifestParserTest.php | 16 | 
1 files changed, 11 insertions, 5 deletions
| diff --git a/tests/Unit/ManifestParserTest.php b/tests/Unit/ManifestParserTest.php index fe88daa..f5ca734 100644 --- a/tests/Unit/ManifestParserTest.php +++ b/tests/Unit/ManifestParserTest.php @@ -2,10 +2,16 @@  use Lightscale\LaralightAssets\JsonManifestParser; -it('parses json', function() { -    $data = '{"main.js": "main.testing.js"}'; -    $parser = new JsonManifestParser; -    $result = $parser->parse($data); +describe('JsonManifestParser', function() { +    it('instantiates', function() { +        new JsonManifestParser; +    })->throwsNoExceptions(); -    expect($result)->toMatchArray(['main.js' => 'main.testing.js']); +    it('parses json', function() { +        $data = '{"main.js": "main.testing.js"}'; +        $parser = new JsonManifestParser; +        $result = $parser->parse($data); + +        expect($result)->toMatchArray(['main.js' => 'main.testing.js']); +    });  }); | 
