Skip to content

Commit f599c6b

Browse files
author
Renato Marinho
committed
update html
1 parent db64985 commit f599c6b

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

tests/Boilerplate/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121

2222
<!-- Add your site or application content here -->
2323
<p>Hello world! This is HTML5 Boilerplate.</p>
24+
25+
<img src="http://emblemsbf.com/img/18346.jpg" width="250" style="height:300px; padding:10px" />
26+
2427
<script src="https://github.com/renatomarinho/laravel-page-speed/test/Boilerplate/js/vendor/modernizr-3.5.0.min.js"></script>
2528
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
2629
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.2.1.min.js"><\/script>')</script>

tests/Middleware/RemoveQuotes.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
namespace RenatoMarinho\LaravelPageSpeed\Test\Middleware;
4+
5+
use RenatoMarinho\LaravelPageSpeed\Middleware\TrimUrls;
6+
use RenatoMarinho\LaravelPageSpeed\Test\TestCase;
7+
8+
class TrimUrlsTest extends TestCase
9+
{
10+
public $middleware;
11+
12+
public function getMiddleware()
13+
{
14+
$this->middleware = new TrimUrls();
15+
}
16+
17+
public function testApply()
18+
{
19+
$html = $this->middleware->apply($this->html);
20+
21+
$this->assertNotContains("https://", $html);
22+
$this->assertNotContains("http://", $html);
23+
$this->assertContains("//code.jquery.com/jquery-3.2.1.min.js", $html);
24+
}
25+
}

0 commit comments

Comments
 (0)