Skip to content

Commit

Permalink
fix: context mock
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Aug 29, 2023
1 parent f46c144 commit 80bfbef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jest/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ if (!NativeModules.RNLlama) {
NativeModules.RNLlama = {
initContext: jest.fn(() => Promise.resolve({
contextId: 1,
isUsedMetal: false,
reasonNoMetal: 'Test',
gpu: false,
reasonNoGPU: 'Test',
})),

completion: jest.fn(async (contextId, jobId) => {
Expand Down

0 comments on commit 80bfbef

Please sign in to comment.