diff --git a/LICENSE b/LICENSE index c444076..6ecd892 100644 --- a/LICENSE +++ b/LICENSE @@ -1,3 +1,5 @@ +The MIT License (MIT) + Copyright 2024, 2025 Tududi Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/backend/tests/helpers/setup.js b/backend/tests/helpers/setup.js index a6734c1..04f2f58 100644 --- a/backend/tests/helpers/setup.js +++ b/backend/tests/helpers/setup.js @@ -16,10 +16,19 @@ beforeEach(async () => { try { // Use raw SQL for faster cleanup const tableNames = [ - 'users', 'areas', 'projects', 'tasks', 'tags', 'notes', - 'inbox_items', 'task_events', 'tasks_tags', 'notes_tags', 'projects_tags' + 'users', + 'areas', + 'projects', + 'tasks', + 'tags', + 'notes', + 'inbox_items', + 'task_events', + 'tasks_tags', + 'notes_tags', + 'projects_tags', ]; - + await sequelize.query('PRAGMA foreign_keys = OFF'); for (const tableName of tableNames) { await sequelize.query(`DELETE FROM ${tableName}`); diff --git a/backend/tests/helpers/testUtils.js b/backend/tests/helpers/testUtils.js index e8f4d9f..ed1d505 100644 --- a/backend/tests/helpers/testUtils.js +++ b/backend/tests/helpers/testUtils.js @@ -4,7 +4,8 @@ const { User } = require('../../models'); const createTestUser = async (userData = {}) => { const defaultUser = { email: 'test@example.com', - password_digest: '$2b$10$DPcA0XSvK9FT04mLyKGza.uHb8d.bESwP.XdQfQ47.sKVT4fYzbP.', // Pre-computed hash for 'password123' + password_digest: + '$2b$10$DPcA0XSvK9FT04mLyKGza.uHb8d.bESwP.XdQfQ47.sKVT4fYzbP.', // Pre-computed hash for 'password123' ...userData, };