Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating data #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Updating data #14

wants to merge 3 commits into from

Conversation

scourgemancer
Copy link
Contributor

Adds code to periodically update the data, defaulting to updating at the beginning of every day.

@scourgemancer
Copy link
Contributor Author

I'm not sure why the tests are failing.
I don't believe that I modified the behaviors of any of the functions they called but it might be because of the new header in the tair.gaf file, though I find it hard to read where it would be getting called from.

@nicholastmosher
Copy link
Contributor

image

    expect(jest.fn()).toHaveBeenCalledTimes(expected)
    Expected number of calls: 1
    Received number of calls: 0
      23 |     let foobar = jest.fn();
      24 |     startPeriodicallyCalling(foobar, 200, new Date(), 300);
    > 25 |     setTimeout(() => expect(foobar).toHaveBeenCalledTimes(1), 500);
         |                                     ^
      26 |   });
      27 | });
      28 |
      at src/utils/__tests__/test_data_fetcher.ts:25:37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants