Skip to content

Commit

Permalink
delete redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilovtim committed Nov 21, 2023
1 parent f0dc19e commit fcd8768
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions packages/dids/tests/resolver-cache-memory.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('DidResolverCacheMemory', () => {
clock.restore();
});

describe('get', () => {
describe('get / set', () => {
it('should return undefined for non-existent keys', async () => {
const result = await cache.get('nonexistent');
expect(result).to.be.undefined;
Expand Down Expand Up @@ -58,20 +58,6 @@ describe('DidResolverCacheMemory', () => {
});
});

describe('set', () => {
it('should store a value', async () => {
const testDidResolutionResult = {
didResolutionMetadata : {},
didDocument : { id: 'abc123' },
didDocumentMetadata : {}
};
const testDid = 'did:example:alice';
await cache.set(testDid, testDidResolutionResult);
const result = await cache.get(testDid);
expect(result).to.deep.equal(testDidResolutionResult);
});
});

describe('delete', () => {
it('should remove a stored value', async () => {
const testDidResolutionResult = {
Expand Down

0 comments on commit fcd8768

Please sign in to comment.