diff options
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']); +    });  }); | 
