Skip to content

Commit

Permalink
keychain: stop using tmp-promise
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed Oct 13, 2019
1 parent a2845a3 commit 9304ec9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.
2 changes: 1 addition & 1 deletion packages/fw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"devDependencies": {
"@ndn/tlv": "workspace:*",
"@types/p-fifo": "gist:b5c0b4de5155da604daf6cb7af8dd534",
"@types/p-fifo": "git+https://gist.github.com/b5c0b4de5155da604daf6cb7af8dd534.git",
"tinyqueue": "^2.0.3"
}
}
3 changes: 2 additions & 1 deletion packages/keychain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"write": "^2.0.0"
},
"devDependencies": {
"tmp-promise": "github:yoursunny/tmp-promise#a43571b526a3eae4f2e7e13e58d7d584c400d041"
"@types/tmp": "^0.1.0",
"tmp": "^0.1.0"
}
}
10 changes: 5 additions & 5 deletions packages/keychain/tests/store/keychain-open.t.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { dir as tmpDir } from "tmp-promise";
import { dirSync as tmpDir } from "tmp";

import { KeyChain } from "../../src";
import * as TestKeyChainStore from "../../test-fixture/keychain-store";

let locator: string;
let cleanup: () => Promise<void>;
let deleteTmpDir: () => void;

beforeAll(async () => {
({ path: locator, cleanup } = await tmpDir({ unsafeCleanup: true }));
({ name: locator, removeCallback: deleteTmpDir } = tmpDir({ unsafeCleanup: true }));
});

afterAll(async () => {
await cleanup();
afterAll(() => {
deleteTmpDir();
});

test("open store", async () => {
Expand Down
21 changes: 6 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9304ec9

Please sign in to comment.