blob: f5ca734ea4f1e2396aa38ee09e8ffde0b07afbc5 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 | <?php
use Lightscale\LaralightAssets\JsonManifestParser;
describe('JsonManifestParser', function() {
    it('instantiates', function() {
        new JsonManifestParser;
    })->throwsNoExceptions();
    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']);
    });
});
 |