express-manifest-helpers
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -81,3 +81,3 @@ 'use strict'; | ||
return trimTag('<link rel="' + lookup(source) + '" ' + mapAttrs(attrs) + ' />'); | ||
return trimTag('<link rel="stylesheet" href="' + lookup(source) + '" ' + mapAttrs(attrs) + ' />'); | ||
} | ||
@@ -84,0 +84,0 @@ |
{ | ||
"name": "express-manifest-helpers", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "View helpers to use with an asset manifest", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -30,3 +30,3 @@ import fs from 'fs' | ||
let result = stylesheetTag(source) | ||
let expected = `<link rel="${manifest[source]}" />` | ||
let expected = `<link rel="stylesheet" href="${manifest[source]}" />` | ||
@@ -39,3 +39,3 @@ expect(result).to.equal(expected) | ||
let result = stylesheetTag(source, { 'data-one': '1', 'data-two': '2' }) | ||
let expected = `<link rel="${manifest[source]}" data-one="1" data-two="2" />` | ||
let expected = `<link rel="stylesheet" href="${manifest[source]}" data-one="1" data-two="2" />` | ||
@@ -46,3 +46,3 @@ expect(result).to.equal(expected) | ||
it('handles malformed input', function(){ | ||
let expected = '<link rel="" />' | ||
let expected = '<link rel="stylesheet" href="" />' | ||
@@ -49,0 +49,0 @@ expect(stylesheetTag('missing-file.js')).to.equal(expected) |
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
13740