Comparing version 2.2.0 to 2.2.1
@@ -55,7 +55,6 @@ 'use strict'; | ||
} | ||
Object.keys(buffer).forEach(function(url) { | ||
var file = buffer[url]; | ||
file.data = extend({ | ||
root: buffer['/'] || null, | ||
root: buffer[options.baseUrl] || null, | ||
parent: parent(url), | ||
@@ -62,0 +61,0 @@ children: children(url), |
{ | ||
"name": "gulp-ssg", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/paulwib/gulp-ssg", |
@@ -60,2 +60,4 @@ 'use strict'; | ||
expect(p2_1.data.root.data.url).to.equal('/'); | ||
expect(p2_1.data.root.data.children).not.to.be.null; | ||
expect(p2_1.data.root.data.children.length).to.equal(2); | ||
done(); | ||
@@ -212,2 +214,3 @@ }); | ||
stream.on('end', function() { | ||
// Check page URLs | ||
expect(h.data.url).to.equal('/path/to/site/'); | ||
@@ -217,2 +220,7 @@ expect(p1.data.url).to.equal('/path/to/site/hello.html'); | ||
expect(p2_1.data.url).to.equal('/path/to/site/foo/bar.html'); | ||
// Check reference to root | ||
expect(p2_1.data.root.data.url).to.equal('/path/to/site/'); | ||
expect(p2_1.data.root.data.children).not.to.be.null; | ||
expect(p2_1.data.root.data.children.length).to.equal(2); | ||
done(); | ||
@@ -340,3 +348,3 @@ }); | ||
it('should give not break if there is no root file', function(done) { | ||
it('should not break if there is no root file', function(done) { | ||
@@ -343,0 +351,0 @@ var stream = ssg(); |
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
24127
481