mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-22 03:05:19 -04:00
refactor: use integer primary keys
Closes #1292 Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
499f632d8d
commit
2c1e0517ff
17 changed files with 42 additions and 42 deletions
|
@ -116,7 +116,7 @@ describe('RevisionsService', () => {
|
|||
describe('purgeRevisions', () => {
|
||||
it('purges the revision history', async () => {
|
||||
const note = {} as Note;
|
||||
note.id = 'test';
|
||||
note.id = 4711;
|
||||
let revisions: Revision[] = [];
|
||||
const revision1 = Revision.create('a', 'a', note) as Revision;
|
||||
revision1.id = 1;
|
||||
|
@ -146,7 +146,7 @@ describe('RevisionsService', () => {
|
|||
});
|
||||
it('has no effect on revision history when a single revision is present', async () => {
|
||||
const note = {} as Note;
|
||||
note.id = 'test';
|
||||
note.id = 4711;
|
||||
let revisions: Revision[] = [];
|
||||
const revision1 = Revision.create('a', 'a', note) as Revision;
|
||||
revision1.id = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue