mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 17:17:26 +01:00
Feature: page count (#7750)
--------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
4adf20af1e
commit
c92c3e224a
23 changed files with 319 additions and 45 deletions
|
|
@ -34,6 +34,7 @@ const doc = {
|
|||
correspondent: 8,
|
||||
document_type: 10,
|
||||
storage_path: null,
|
||||
page_count: 12,
|
||||
notes: [
|
||||
{
|
||||
id: 11,
|
||||
|
|
@ -91,6 +92,10 @@ describe('DocumentCardSmallComponent', () => {
|
|||
fixture.detectChanges()
|
||||
})
|
||||
|
||||
it('should display page count', () => {
|
||||
expect(fixture.nativeElement.textContent).toContain('12 pages')
|
||||
})
|
||||
|
||||
it('should display a document, limit tags to 5', () => {
|
||||
expect(fixture.nativeElement.textContent).toContain('Document 10')
|
||||
expect(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue