Feature: email document button (#8950)

This commit is contained in:
shamoon
2025-02-21 08:44:03 -08:00
committed by GitHub
parent 4f08b5fa20
commit c122c60d3f
19 changed files with 714 additions and 189 deletions

View File

@@ -355,6 +355,21 @@ it('should include custom fields in sort fields if user has permission', () => {
])
})
it('should call appropriate api endpoint for email document', () => {
subscription = service
.emailDocument(
documents[0].id,
'hello@paperless-ngx.com',
'hello',
'world',
true
)
.subscribe()
httpTestingController.expectOne(
`${environment.apiBaseUrl}${endpoint}/${documents[0].id}/email/`
)
})
afterEach(() => {
subscription?.unsubscribe()
httpTestingController.verify()