2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-11 01:22:27 +03:00

chore: lint

This commit is contained in:
pimlie
2020-01-03 10:30:33 +01:00
parent 7c2cb1ae89
commit 9041bfef62
7 changed files with 26 additions and 22 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ export function getVueMetaPath (browser) {
}
process.server = !browser
return path.resolve(__dirname, `../../src`)
return path.resolve(__dirname, '../../src')
}
export function webpackRun (config) {
@@ -152,7 +152,7 @@ export function createWebpackConfig (config = {}) {
new webpack.DefinePlugin({
'process.env': {
// make sure our simple polyfills are enabled
'NODE_ENV': '"test"'
NODE_ENV: '"test"'
}
}),
new CopyWebpackPlugin([
@@ -161,7 +161,7 @@ export function createWebpackConfig (config = {}) {
],
resolve: {
alias: {
'vue': 'vue/dist/vue.esm.js',
vue: 'vue/dist/vue.esm.js',
'vue-meta': getVueMetaPath(true)
}
},
+11 -8
View File
@@ -118,13 +118,14 @@ const metaInfoData = {
{ src: 'src-prepend', async: true, defer: false, pbody: true },
{ src: 'src2', async: false, defer: true, body: true },
{ src: 'src3', async: false, skip: true },
{ type: 'application/ld+json',
{
type: 'application/ld+json',
json: {
'@context': 'http://schema.org',
'@type': 'Organization',
'name': 'MyApp',
'url': 'https://www.myurl.com',
'logo': 'https://www.myurl.com/images/logo.png'
name: 'MyApp',
url: 'https://www.myurl.com',
logo: 'https://www.myurl.com/images/logo.png'
}
}
],
@@ -280,10 +281,12 @@ const metaInfoData = {
defaultTest()
if (side === 'client') {
expect(attributeMap).toEqual({ bodyAttrs: {
foo: { ssr: 'bar' },
fizz: { ssr: ['fuzz', 'fozz'] }
} })
expect(attributeMap).toEqual({
bodyAttrs: {
foo: { ssr: 'bar' },
fizz: { ssr: ['fuzz', 'fozz'] }
}
})
}
}
}