Skip to content

Commit ca173d0

Browse files
mock github link
1 parent 5fa3aee commit ca173d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

redisinsight/api/test/api/custom-tutorials/POST-custom-tutorials.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
nock,
1313
_,
1414
} from '../deps';
15-
import * as fs from 'fs-extra'
1615
const { server, request, localDb } = deps;
1716

1817
// create endpoint
@@ -117,7 +116,7 @@ describe('POST /custom-tutorials', () => {
117116
await fsExtra.remove(customTutorialsFolder);
118117
await (await localDb.getRepository(localDb.repositories.CUSTOM_TUTORIAL)).clear();
119118

120-
const zip = fs.readFileSync(path.join(staticsFolder, 'test.zip'))
119+
const zip = await fsExtra.readFile(path.join(staticsFolder, 'test.zip'))
121120
nockScope.get('/test.zip').reply(200, zip);
122121
});
123122

0 commit comments

Comments
 (0)