2576 - Photo upload component #470
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#470
Loading…
Reference in New Issue
No description provided.
Delete Branch "2576-photo_uploader"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WIP: 2576 - Photo upload componentto 2576 - Photo upload component@ -0,0 +3,4 @@
describe('image upload()', () => {
afterEach(() => {
// RESTORE NODE ENV
delete process.env.NODE_ENV;
discard
@ -0,0 +47,4 @@
expect(containerModel.upload).toHaveBeenCalled();
});
it('should throw an error to upload a photo on test environment', async() => {
discard
@ -0,0 +50,4 @@
if (process.env.NODE_ENV == 'test')
throw new UserError(`You can't upload images on the test instance`);
await TempContainer.allowedContentTypes();
discard
LGTM