-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from memori-ai/feat_upload_documents
Feat upload documents
- Loading branch information
Showing
27 changed files
with
1,103 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const ConvertApi = { | ||
auth: jest.fn(() => ({ | ||
createParams: jest.fn(() => ({ | ||
add: jest.fn() | ||
})), | ||
convert: jest.fn(() => Promise.resolve({ | ||
files: [{ Url: 'mock-url' }] | ||
})) | ||
})) | ||
}; | ||
|
||
export default ConvertApi; |
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 |
---|---|---|
|
@@ -18,11 +18,13 @@ module.exports = { | |
'\\.(css|less|scss|sass)$': 'identity-obj-proxy', | ||
uuid: require.resolve('uuid'), | ||
'@react-leaflet/core': require.resolve('./__mocks__/react-leaflet-core.js'), | ||
'convertapi-js': require.resolve('./__mocks__/convertapi-js.js'), | ||
}, | ||
transformIgnorePatterns: [ | ||
'/node_modules/([email protected]/memori-api-client)', | ||
'/node_modules/(?!microsoft-cognitiveservices-speech-sdk)', | ||
'/node_modules/(?!uuid)', | ||
'/node_modules/(?!@react-leaflet/core)', | ||
'/node_modules/(?!(convertapi-js|convertapi-js-node)/)', | ||
], | ||
}; |
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
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
Oops, something went wrong.