diff options
Diffstat (limited to 'tests/Unit/ManifestParserTest.php')
| -rw-r--r-- | tests/Unit/ManifestParserTest.php | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/tests/Unit/ManifestParserTest.php b/tests/Unit/ManifestParserTest.php new file mode 100644 index 0000000..fe88daa --- /dev/null +++ b/tests/Unit/ManifestParserTest.php @@ -0,0 +1,11 @@ +<?php + +use Lightscale\LaralightAssets\JsonManifestParser; + +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']); +}); | 
