From 7d5b93a62cbcf9152ce9b9eb68430d18ce312228 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Sat, 27 Apr 2019 20:54:17 +0100 Subject: [PATCH] Start basic fixtures --- tests/fixtures/contributors.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/fixtures/contributors.js diff --git a/tests/fixtures/contributors.js b/tests/fixtures/contributors.js new file mode 100644 index 0000000..12f8f40 --- /dev/null +++ b/tests/fixtures/contributors.js @@ -0,0 +1,13 @@ +import Contributor from 'kredits-web/models/contributor'; + +const contributors = []; + +const data = [ + { id: 1, name: 'Bumi', totalKreditsEarned: 5500 }, + { id: 2, name: 'Râu Cao', totalKreditsEarned: 1500 }, + { id: 3, name: 'Manuel', totalKreditsEarned: 3000 } +]; + +data.forEach(attrs => contributors.push(Contributor.create(attrs))); + +export default contributors;