Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau committed Sep 16, 2019
1 parent f79d59e commit 7c62777
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
"chalk": "^2.4.2",
"cids": "~0.7.0",
"datastore-core": "~0.7.0",
"datastore-fs": "^0.9.0",
"datastore-level": "^0.12.0",
"datastore-fs": "~0.9.0",
"datastore-level": "~0.12.0",
"debug": "^4.1.0",
"fsevents": "^1.2.9",
"interface-datastore": "^0.7.0",
"interface-datastore": "~0.7.0",
"proper-lockfile": "^3.2.0",
"yargs": "^12.0.5",
"yargs-promise": "^1.1.0"
Expand Down
11 changes: 5 additions & 6 deletions test/migrations/migration-8-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const blocksFixtures = [
['CIQMUSJFXRZX7ZRBICXJQPHVD7YSPD5KS75DRO7Q55ADVNORRBXV75Y', ['CIQMUSJFXRZX7ZRBICXJQPHVD7YSPD5KS75DRO7Q55ADVNORRBXV75Y']],
['CIQJBQD2O6K4CGJVCCTJNUP57QHR4SKHZ74OIITBBGLOMCO3ZOLWLGA', ['CIQJBQD2O6K4CGJVCCTJNUP57QHR4SKHZ74OIITBBGLOMCO3ZOLWLGA']],
['CIQJF2E6OPOEYYEVHYML4UD5A3R4QRAVBI7NVH3PL64D3IJCWR2SPUQ', ['CIQJF2E6OPOEYYEVHYML4UD5A3R4QRAVBI7NVH3PL64D3IJCWR2SPUQ']],
['CIQFTFEEHEDF6KLBT32BFAGLXEZL4UWFNWM4LFTLMXQBCERZ6CMLX3Y', ['CIQFTFEEHEDF6KLBT32BFAGLXEZL4UWFNWM4LFTLMXQBCERZ6CMLX3Y']],
['CIQFTFEEHEDF6KLBT32BFAGLXEZL4UWFNWM4LFTLMXQBCERZ6CMLX3Y', ['CIQFTFEEHEDF6KLBT32BFAGLXEZL4UWFNWM4LFTLMXQBCERZ6CMLX3Y']]
]

async function bootstrapKeys (dir, encoded) {
Expand All @@ -35,8 +35,8 @@ async function bootstrapKeys (dir, encoded) {
let name
for (let keyNames of keysFixtures) {
name = encoded ? keyNames[1] : keyNames[0]
await store.put(new Key(`/pkcs8/${ name }`), '')
await store.put(new Key(`/info/${ name }`), '')
await store.put(new Key(`/pkcs8/${name}`), '')
await store.put(new Key(`/info/${name}`), '')
}

await store.close()
Expand All @@ -49,8 +49,8 @@ async function validateKeys (dir, shouldBeEncoded) {
let name
for (let keyNames of keysFixtures) {
name = shouldBeEncoded ? keyNames[1] : keyNames[0]
expect(await store.has(new Key(`/pkcs8/${ name }`))).to.be.true(name)
expect(await store.has(new Key(`/info/${ name }`))).to.be.true(name)
expect(await store.has(new Key(`/pkcs8/${name}`))).to.be.true(name)
expect(await store.has(new Key(`/info/${name}`))).to.be.true(name)
}

await store.close()
Expand Down Expand Up @@ -130,6 +130,5 @@ module.exports = (setup, cleanup) => {
// await blocksMigration.revert(dir)
// await validateKeys(dir, false)
// })

})
}

0 comments on commit 7c62777

Please sign in to comment.