mirror of https://codeberg.org/pzp/pzp-sync.git
format code
This commit is contained in:
parent
1aac2f56a2
commit
b503476824
|
@ -25,5 +25,5 @@ function estimateMsgCount(range) {
|
|||
|
||||
module.exports = {
|
||||
isEmptyRange,
|
||||
estimateMsgCount
|
||||
estimateMsgCount,
|
||||
}
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
"bs58": "^5.0.0",
|
||||
"c8": "7",
|
||||
"ppppp-db": "github:staltz/ppppp-db",
|
||||
"prettier": "^2.6.2",
|
||||
"pretty-quick": "^3.1.3",
|
||||
"rimraf": "^4.4.0",
|
||||
"secret-stack": "^6.4.1",
|
||||
"ssb-box": "^1.0.1",
|
||||
|
@ -48,8 +50,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"test": "tape test/*.js | tap-arc --bail",
|
||||
"format-code": "prettier --write \"*.js\" \"(test|compat|indexes|operators)/*.js\"",
|
||||
"format-code-staged": "pretty-quick --staged --pattern \"*.js\" --pattern \"(test|compat|indexes|operators)/*.js\"",
|
||||
"format-code": "prettier --write \"(lib|test)/**/*.js\"",
|
||||
"format-code-staged": "pretty-quick --staged --pattern \"(lib|test)/**/*.js\"",
|
||||
"coverage": "c8 --reporter=lcov npm run test"
|
||||
},
|
||||
"husky": {
|
||||
|
|
|
@ -337,7 +337,7 @@ test('sync a thread with reactions too', async (t) => {
|
|||
|
||||
const reactionA3 = await p(alice.db.create)({
|
||||
type: 'reaction',
|
||||
content: {text: 'yes', link: replyA1.hash},
|
||||
content: { text: 'yes', link: replyA1.hash },
|
||||
tangles: [rootA.hash, replyA1.hash],
|
||||
keys: aliceKeys,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue