-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(embed, platforms): wet approach to moving logic over (#3080)
* feat(embed, platforms): wet approach to moving logic over * feat(embed): wip embed/verify * fix: build error * feat: fixing build errors, adding metadata API handler * feat: adding rate limiting to embed API * fix: adding tests for express app * fix: build error * fix: test failures * feat: reworked autoVerification.ts, added tests * fix: dependencies for iam --------- Co-authored-by: Gerald Iakobinyi-Pich1 <[email protected]>
- Loading branch information
1 parent
7780837
commit 6271cb0
Showing
20 changed files
with
1,665 additions
and
290 deletions.
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
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,18 @@ | ||
// __mocks__/ioredis.ts | ||
const RedisMock = jest.fn().mockImplementation(() => { | ||
return { | ||
get: jest.fn((key) => Promise.resolve(null)), | ||
set: jest.fn((key, value) => { | ||
return Promise.resolve("OK"); | ||
}), | ||
on: jest.fn((key, func) => {}), | ||
call: jest.fn((type, ...args) => { | ||
if(type === "EVALSHA") { | ||
return Promise.resolve([ 1, 60000 ]); | ||
} | ||
return Promise.resolve("OK"); | ||
}), | ||
}; | ||
}); | ||
|
||
module.exports = RedisMock; |
Oops, something went wrong.