Use create*
prefix to clarify curried functions
This commit is contained in:
parent
6e6b93d917
commit
8474f3cf7f
4 changed files with 25 additions and 23 deletions
|
@ -127,7 +127,7 @@ const _createMessage = ({ commonProperties, conversationId, type } = {}) => {
|
|||
};
|
||||
|
||||
const FIXTURES_PATH = path.join(__dirname, '..', '..', 'fixtures');
|
||||
const readData = Attachments.readData(FIXTURES_PATH);
|
||||
const readData = Attachments.createReader(FIXTURES_PATH);
|
||||
const createRandomInMemoryAttachment = async () => {
|
||||
const files = (await fs.readdir(FIXTURES_PATH)).map(createFileEntry);
|
||||
const { contentType, fileName } = sample(files);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue