mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-09 05:16:23 +10:00
chore: fix lint & update lockfile
This commit is contained in:
+2
-3
@@ -40,7 +40,7 @@
|
||||
"@types/node": "^12.7.5",
|
||||
"@types/semver": "^6.0.0",
|
||||
"conventional-changelog-cli": "^2.0.23",
|
||||
"eslint": "^6.4.0",
|
||||
"eslint": "5.11.1",
|
||||
"eslint-plugin-jest": "^22.17.0",
|
||||
"eslint-plugin-vue-libs": "^4.0.0",
|
||||
"husky": "^3.0.5",
|
||||
@@ -48,7 +48,6 @@
|
||||
"lerna": "3.16.4",
|
||||
"lint-staged": "^9.3.0",
|
||||
"minimist": "^1.2.0",
|
||||
"typescript": "^3.6.3",
|
||||
"all-contributors-cli": "^6.9.1"
|
||||
"typescript": "^3.6.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ describe('Page', () => {
|
||||
test('should loop over sync enhancers', async () => {
|
||||
await page.enhance(enhancers)
|
||||
|
||||
return enhancers.map(enhancer => expect(enhancer.value).toBeCalled())
|
||||
return enhancers.map(enhancer => expect(enhancer.value).toHaveBeenCalled())
|
||||
})
|
||||
|
||||
test('should loop over sync and async enhancers', async () => {
|
||||
@@ -135,7 +135,7 @@ describe('Page', () => {
|
||||
}]
|
||||
await page.enhance(mixedEnhancers)
|
||||
|
||||
return mixedEnhancers.map(enhancer => expect(enhancer.value).toBeCalled())
|
||||
return mixedEnhancers.map(enhancer => expect(enhancer.value).toHaveBeenCalled())
|
||||
})
|
||||
|
||||
test('should log when enhancing when failing', async () => {
|
||||
@@ -147,7 +147,7 @@ describe('Page', () => {
|
||||
value: jest.fn().mockRejectedValue(error)
|
||||
}])
|
||||
} catch (e) {
|
||||
expect(console.log).toBeCalledWith(error)
|
||||
expect(console.log).toHaveBeenCalledWith(error)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -93,6 +93,7 @@ export default {
|
||||
? repo
|
||||
: `https://github.com/${repo}`
|
||||
}
|
||||
return null
|
||||
},
|
||||
|
||||
repoLabel () {
|
||||
|
||||
@@ -53,6 +53,7 @@ export default {
|
||||
this.$page.relativePath
|
||||
)
|
||||
}
|
||||
return null
|
||||
},
|
||||
|
||||
editLinkText () {
|
||||
|
||||
Reference in New Issue
Block a user