From 01ed17a0f07111fdc55bffd9043cb08e65f6c9b4 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 13 Jul 2021 12:18:54 +0200 Subject: [PATCH] Fix setting task favorite status in test fixtures --- cypress/factories/task.js | 1 - src/models/file.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cypress/factories/task.js b/cypress/factories/task.js index 8e0d7b59..6fa8d5b6 100644 --- a/cypress/factories/task.js +++ b/cypress/factories/task.js @@ -14,7 +14,6 @@ export class TaskFactory extends Factory { done: false, list_id: 1, created_by_id: 1, - is_favorite: false, index: '{increment}', created: formatISO(now), updated: formatISO(now) diff --git a/src/models/file.js b/src/models/file.js index 258de424..09497963 100644 --- a/src/models/file.js +++ b/src/models/file.js @@ -11,7 +11,7 @@ export default class FileModel extends AbstractModel { id: 0, mime: '', name: '', - size: '', + size: 0, created: null, } }