/* global test, expect */
import fakeEvents from './fakeEvents';

test('calling fakeEvents should generate an array containing btw. 60 and 120 objects', () => {
	expect(fakeEvents.length)
		.toBeGreaterThanOrEqual(60);
	expect(fakeEvents.length)
		.toBeLessThanOrEqual(120);
});

@@ -272,8 +272,381 @@
 0);%0A%7D);%0A
+%0Atest('events generated with fakeEvents should include 3 major keys: id, data & state', () =%3E %7B%0A%09fakeEvents.forEach((event) =%3E%0A%09%09expect(Object.keys(event)).toEqual(%5B'id', 'data', 'state'%5D)%0A%09);%0A%7D);%0A%0Atest('all events should have a string id', () =%3E %7B%0A%09fakeEvents.forEach((event) =%3E %7B%0A%09%09expect(event.id).not.toBeUndefined();%0A%09%09expect(typeof event.id).toBe('string');%0A%09%7D);%0A%7D);%0A

Make sure events have the right keys and an id