expect(spy1).toHaveBeenCalledBefore(spy2)

added a matcher to determine if one spy was called before another one during the spec