chore: fix lint & update lockfile

This commit is contained in:
ULIVZ
2019-10-05 00:29:38 +08:00
parent 40e191b822
commit 974ef91c45
5 changed files with 2594 additions and 1985 deletions
+2 -3
View File
@@ -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 () {
+2587 -1979
View File
File diff suppressed because it is too large Load Diff