diff --git a/packages/loot-core/src/mocks/index.js b/packages/loot-core/src/mocks/index.js index 5be16f256c08af4302713500c4df316312a05f66..fc3b126626a7903cddfaa499820255d2ce685c48 100644 --- a/packages/loot-core/src/mocks/index.js +++ b/packages/loot-core/src/mocks/index.js @@ -55,9 +55,8 @@ function _generateTransaction(data) { return { id: id, amount: data.amount || Math.floor(Math.random() * 10000 - 7000), - payee: data.payee || (Math.random() < 0.9 ? 'payed-to' : 'guy'), - notes: - Math.random() < 0.1 ? 'A really long note that should overflow' : 'Notes', + payee: data.payee || 'payed-to', + notes: 'Notes', account: data.account, date: data.date || monthUtils.currentDay(), category: data.category, diff --git a/upcoming-release-notes/771.md b/upcoming-release-notes/771.md new file mode 100644 index 0000000000000000000000000000000000000000..522cc09f86d07fbba3b8abc300a7102ad2a587d0 --- /dev/null +++ b/upcoming-release-notes/771.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [MatissJanis] +--- + +Reducing unit test flakiness by removing randomization