Verified Commit 5fba8813 authored by Aral Balkan's avatar Aral Balkan
Browse files

Upgrade Hugo to version 0.78.0

parent 24c7f3f0
......@@ -25,7 +25,7 @@ const spawn = childProcess.spawn
const homeDir = os.homedir()
const hugoVersion = '0.64.1'
const hugoVersion = '0.78.0'
class HugoError extends Error {
constructor (message, output) {
......@@ -188,7 +188,7 @@ class Hugo {
const architectureMap = {
arm: 'arm',
arm64: 'arm',
arm64: 'arm64',
x64: 'amd64'
}
......
......@@ -80,7 +80,7 @@ test('[hugo.build] ', async t => {
const deflatedIndexPageHTML = fs.readFileSync('test/public/index.html', 'utf-8').replace(/\s/g, '')
const expectedDeflatedIndexPageHTML = '<!DOCTYPEhtml><htmllang="en"><head><metaname="generator"content="Hugo0.64.1"/><metacharset="UTF-8"><metaname="viewport"content="width=device-width,initial-scale=1.0"><title>Yes!</title></head><body><h1>Yes!</h1><p>node-hugo<strong>works!</strong></p></body></html>'
const expectedDeflatedIndexPageHTML = '<!DOCTYPEhtml><htmllang="en"><head><metaname="generator"content="Hugo0.78.0"/><metacharset="UTF-8"><metaname="viewport"content="width=device-width,initial-scale=1.0"><title>Yes!</title></head><body><h1>Yes!</h1><p>node-hugo<strong>works!</strong></p></body></html>'
// Ensure generated HTML is as we expect.
t.strictEquals(expectedDeflatedIndexPageHTML, deflatedIndexPageHTML, 'index page HTML is as expected')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment