-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf5aefd
commit b2e7531
Showing
6 changed files
with
31 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
import {newspaper, title} from '@prisma/client'; | ||
import {box, newspaper, title} from '@prisma/client'; | ||
import {CatalogTitle} from '@/models/CatalogTitle'; | ||
|
||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
|
||
export const MockTitle: title = { | ||
id: 987, | ||
last_box: 'box1', | ||
contact_email: '[email protected]', | ||
contact_name: 'Hugin Huginson', | ||
contact_phone: '12345678', | ||
vendor: 'Hugin AS', | ||
release_pattern: [1, 0, 1, 0, 1, 0, 0], | ||
last_box_from: new Date(2024, 1, 1), | ||
shelf: '1-1', | ||
notes: 'notater', | ||
}; | ||
|
@@ -26,6 +24,13 @@ export const MockCatalogTitle1: CatalogTitle = { | |
language: 'nob' | ||
}; | ||
|
||
export const MockBox1: box = { | ||
id: 'box1', | ||
date_from: new Date(2024, 0, 1), | ||
active: true, | ||
title_id: MockTitle.id, | ||
}; | ||
|
||
export const MockCatalogTitle2: CatalogTitle = { | ||
catalogueId: '123', | ||
name: 'Huginbladet', | ||
|
@@ -36,23 +41,21 @@ export const MockCatalogTitle2: CatalogTitle = { | |
}; | ||
|
||
export const MockNewspaper1: newspaper = { | ||
title_id: MockTitle.id, | ||
edition: '1', | ||
date: new Date(2024, 1, 1), | ||
received: true, | ||
username: 'testuser', | ||
box: MockTitle.last_box!, | ||
notes: 'notater på avis', | ||
box_id: MockBox1.id, | ||
catalog_id: '123456' | ||
}; | ||
|
||
export const MockNewspaper2: newspaper = { | ||
title_id: MockTitle.id, | ||
edition: '2', | ||
date: new Date(2024, 1, 2), | ||
received: true, | ||
username: 'testuser', | ||
box: MockTitle.last_box!, | ||
notes: 'notater på avis', | ||
box_id: MockBox1.id, | ||
catalog_id: '123456' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters