Skip to content

Commit

Permalink
fix(node): fix cache object duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiAndreiev committed Oct 25, 2024
1 parent 905ab00 commit 0a82933
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/node/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import * as crypto from 'crypto';
import { createServer } from 'http';

import express from 'express';
import { FlatCache } from 'flat-cache';
import { delay, http, HttpResponse, passthrough } from 'msw';
import { setupServer } from 'msw/node';
import request from 'supertest';
Expand All @@ -16,14 +15,12 @@ import { describe, afterAll, beforeEach, afterEach, expect, it } from 'vitest';
import pkg from '../package.json';
import * as readmeio from '../src';
import config from '../src/config';
import { getCache } from '../src/lib/get-project-base-url';
import { getCache, cache } from '../src/lib/get-project-base-url';
import { setBackoff } from '../src/lib/metrics-log';

import getReadMeApiMock from './helpers/getReadMeApiMock';
import { MockLoggerStrategy } from './lib/logger.test';

const cache = new FlatCache();

const apiKey = 'mockReadMeApiKey';
const endUserApiKey = '5afa21b97011c63320226ef3';
const incomingGroup = {
Expand Down

0 comments on commit 0a82933

Please sign in to comment.