ShumbaBrown / Project-Sia

1 stars 1 forks source link

Added event list. Updated user/event tests #54

Closed MatthewKing98 closed 4 years ago

MatthewKing98 commented 4 years ago

Added event list and appropriate tests.

Noticed that user definition changed slightly, upsetting previous tests. Fixed.

Note: Native environ not prepped for jasmine code, so the workaround I used was running the code with react scripts but making it focus on the code within the native environment.

Note: all tests work with the exception of evenList tests. Caused by slight system delay, making it that when times are compared between expected and generated events, there's a 1 second difference between times. Tests showcase class functionality otherwise. Will probably define a jasmine object that is similar to event but discarding times in future patches.

MatthewKing98 commented 4 years ago

Also modified event definition to reflect up to date discussion on the data type.