inline-critical
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "inline-critical", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Inline critical-path css and load the existing stylesheets asynchronously", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -51,6 +51,8 @@ 'use strict'; | ||
var expected = read('test/fixtures/cartoon-expected.css'); | ||
var expectedHtml = read('test/fixtures/cartoon-expected.html'); | ||
inlineCritical(html, css, { extract: true, basePath: 'test/fixtures' }); | ||
var out = inlineCritical(html, css, { extract: true, basePath: 'test/fixtures' }); | ||
expect(read(reaver.rev('test/fixtures/cartoon.css', expected))).to.be.equal(expected); | ||
expect(read(reaver.rev('test/fixtures/css/cartoon.css', expected))).to.be.equal(expected); | ||
expect(strip(out.toString('utf-8'))).to.be.equal(strip(expectedHtml)); | ||
@@ -57,0 +59,0 @@ done(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128766
31
733