blob: d1c4bf4bb57bdc544a575c6918b745464ac0255b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
use Lightscale\LaralightAssets\ScriptFile;
use Lightscale\LaralightAssets\StyleFile;
test('script file html', function() {
$file = new ScriptFile('test.js');
expect($file->toHtml())->toBe('<script src="test.js"></script>');
});
test('style file html', function() {
$file = new StyleFile('test.css');
expect($file->toHtml())->toBe('<link type="text/css" rel="stylesheet" href="test.css" />');
});
test('script file hash', function() {
$file = new ScriptFile('test.js');
expect($file->hash())->toBeString();
});
|