Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 24, 2018
1 parent 3094640 commit 09c9d73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/__snapshots__/pwa.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

exports[`pwa init 1`] = `
"
<meta data-n-head=\\"true\\" data-hid=\\"charset\\" charset=\\"utf-8\\"><meta data-n-head=\\"true\\" data-hid=\\"viewport\\" name=\\"viewport\\" content=\\"width=device-width, initial-scale=1\\"><meta data-n-head=\\"true\\" data-hid=\\"mobile-web-app-capable\\" name=\\"mobile-web-app-capable\\" content=\\"yes\\"><meta data-n-head=\\"true\\" data-hid=\\"apple-mobile-web-app-title\\" name=\\"apple-mobile-web-app-title\\" content=\\"Test Project Name\\"><meta data-n-head=\\"true\\" data-hid=\\"description\\" name=\\"description\\" content=\\"Test Project Description\\"><meta data-n-head=\\"true\\" data-hid=\\"theme-color\\" name=\\"theme-color\\" content=\\"black\\"><meta data-n-head=\\"true\\" data-hid=\\"og:type\\" name=\\"og:type\\" property=\\"og:type\\" content=\\"website\\"><meta data-n-head=\\"true\\" data-hid=\\"og:title\\" name=\\"og:title\\" property=\\"og:title\\" content=\\"Test Project Name\\"><meta data-n-head=\\"true\\" data-hid=\\"og:description\\" name=\\"og:description\\" property=\\"og:description\\" content=\\"Test Project Description\\"><title data-n-head=\\"true\\">Test Project Name</title><link data-n-head=\\"true\\" rel=\\"manifest\\" href=\\"/_nuxt/manifest.15e2617f.json\\"><link data-n-head=\\"true\\" rel=\\"shortcut icon\\" href=\\"/_nuxt/icons/icon_64.9mgd2ZDMcQu.png\\"><link data-n-head=\\"true\\" rel=\\"apple-touch-icon\\" href=\\"/_nuxt/icons/icon_512.9mgd2ZDMcQu.png\\" sizes=\\"512x512\\"><script data-n-head=\\"true\\" async=\\"true\\" src=\\"/_nuxt/ons.40ac840e.js\\"></script><link rel=\\"preload\\" href=\\"/_nuxt/manifest.js\\" as=\\"script\\"><link rel=\\"preload\\" href=\\"/_nuxt/vendor.js\\" as=\\"script\\"><link rel=\\"preload\\" href=\\"/_nuxt/app.js\\" as=\\"script\\"><link rel=\\"preload\\" href=\\"/_nuxt/vendor.css\\" as=\\"style\\"><link rel=\\"preload\\" href=\\"/_nuxt/layouts/default.js\\" as=\\"script\\"><link rel=\\"preload\\" href=\\"/_nuxt/pages/index.js\\" as=\\"script\\"><link rel=\\"prefetch\\" href=\\"/_nuxt/ons.40ac840e.js\\"><link rel=\\"stylesheet\\" href=\\"/_nuxt/vendor.css\\">
<title data-n-head=\\"true\\">Test Project Name</title><meta data-n-head=\\"true\\" data-hid=\\"charset\\" charset=\\"utf-8\\"><meta data-n-head=\\"true\\" data-hid=\\"viewport\\" name=\\"viewport\\" content=\\"width=device-width, initial-scale=1\\"><meta data-n-head=\\"true\\" data-hid=\\"mobile-web-app-capable\\" name=\\"mobile-web-app-capable\\" content=\\"yes\\"><meta data-n-head=\\"true\\" data-hid=\\"apple-mobile-web-app-title\\" name=\\"apple-mobile-web-app-title\\" content=\\"Test Project Name\\"><meta data-n-head=\\"true\\" data-hid=\\"description\\" name=\\"description\\" content=\\"Test Project Description\\"><meta data-n-head=\\"true\\" data-hid=\\"theme-color\\" name=\\"theme-color\\" content=\\"black\\"><meta data-n-head=\\"true\\" data-hid=\\"og:type\\" name=\\"og:type\\" property=\\"og:type\\" content=\\"website\\"><meta data-n-head=\\"true\\" data-hid=\\"og:title\\" name=\\"og:title\\" property=\\"og:title\\" content=\\"Test Project Name\\"><meta data-n-head=\\"true\\" data-hid=\\"og:site_name\\" name=\\"og:site_name\\" property=\\"og:site_name\\" content=\\"Test Project Name\\"><meta data-n-head=\\"true\\" data-hid=\\"og:description\\" name=\\"og:description\\" property=\\"og:description\\" content=\\"Test Project Description\\"><link data-n-head=\\"true\\" rel=\\"manifest\\" href=\\"/_nuxt/manifest.0fc4969c.json\\"><link data-n-head=\\"true\\" rel=\\"shortcut icon\\" href=\\"/_nuxt/icons/icon_64.9mgd2ZDMcQu.png\\"><link data-n-head=\\"true\\" rel=\\"apple-touch-icon\\" href=\\"/_nuxt/icons/icon_512.9mgd2ZDMcQu.png\\" sizes=\\"512x512\\"><script data-n-head=\\"true\\" async=\\"true\\" src=\\"/_nuxt/ons.40ac840e.js\\"></script><link rel=\\"preload\\" href=\\"/_nuxt/commons.app.js\\" as=\\"script\\"><link rel=\\"preload\\" href=\\"/_nuxt/vendor.css\\" as=\\"style\\"><link rel=\\"preload\\" href=\\"/_nuxt/app.js\\" as=\\"script\\"><link rel=\\"preload\\" href=\\"/_nuxt/pages/index.js\\" as=\\"script\\"><link rel=\\"stylesheet\\" href=\\"/_nuxt/vendor.css\\">
"
`;
2 changes: 1 addition & 1 deletion test/pwa.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000
process.env.PORT = process.env.PORT || 5060
process.env.NODE_ENV = 'production'

const { Nuxt, Builder } = require('nuxt')
const { Nuxt, Builder } = require('nuxt-edge')

const url = path => `http://localhost:${process.env.PORT}${path}`

Expand Down

0 comments on commit 09c9d73

Please sign in to comment.