mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 17:17:26 +01:00
Fix: get highest ASN regardless of user (#4326)
This commit is contained in:
parent
a2bdd64ad0
commit
f7f5d0efa6
6 changed files with 75 additions and 45 deletions
|
|
@ -229,6 +229,14 @@ describe(`DocumentService`, () => {
|
|||
`${environment.apiBaseUrl}${endpoint}/${documents[0].id}/preview/#search="${searchQuery}"`
|
||||
)
|
||||
})
|
||||
|
||||
it('should support get next asn', () => {
|
||||
subscription = service.getNextAsn().subscribe((asn) => asn)
|
||||
const req = httpTestingController.expectOne(
|
||||
`${environment.apiBaseUrl}${endpoint}/next_asn/`
|
||||
)
|
||||
expect(req.request.method).toEqual('GET')
|
||||
})
|
||||
})
|
||||
|
||||
beforeEach(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue