Skip to content

Commit

Permalink
docs: update JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaslanjaka committed May 15, 2023
1 parent 9c40705 commit b9a3449
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/cache-object.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ describe('Cache - object', () => {
};
const valueMap = new Map(Object.entries(value));
const cacheMap = new Cache<typeof valueMap>();
// built-in Set same as Array
const valueSet = new Set(Object.keys(value));
const cacheSet = new Cache<typeof valueSet>();

Expand Down Expand Up @@ -72,7 +73,7 @@ describe('Cache - object', () => {
// should applied and return the same value
should().equal(cacheMap.apply('bar', valueMap), valueMap);
});
it('is valid map', () => {
it('is valid Map', () => {
const targetValue = cacheMap.get('bar');
// built-in Map validate
expect(targetValue! instanceof Map).to.be.true;
Expand All @@ -92,7 +93,7 @@ describe('Cache - object', () => {
// should applied and return the same value
should().equal(cacheSet.apply('bar', valueSet), valueSet);
});
it('is valid map', () => {
it('is valid Set', () => {
const targetValue = cacheSet.get('bar');
// built-in Map validate
expect(targetValue! instanceof Set).to.be.true;
Expand Down

0 comments on commit b9a3449

Please sign in to comment.