generated from fission-codes/project-template
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store exchange key in well known location (#285)
* Store exchange key in well known location * Fix test * Remove console.log * Make contents an empty object * Update CHANGELOG * Add hasPublicExchangeKey function * Mention hasPublicExchangeKey in changelog * Store as directory instead
- Loading branch information
Showing
3 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import expect from "expect" | ||
|
||
import "../../src/setup/node.js" | ||
|
||
import { EXCHANGE_PATH } from "../../src/fs/filesystem.js" | ||
import { emptyFilesystem } from "../helpers/filesystem.js" | ||
|
||
import * as did from "../../src/did/index.js" | ||
import * as path from "../../src/path.js" | ||
|
||
|
||
describe("the filesystem", () => { | ||
|
||
it("adds public exchange key to well-known location", async function() { | ||
const fs = await emptyFilesystem() | ||
await fs.addPublicExchangeKey() | ||
const exists = await fs.hasPublicExchangeKey() | ||
|
||
expect(exists).toEqual(true) | ||
}) | ||
|
||
}) |