tair / ifad-backend

Interactive Functional Annotations Dashboard
http://ec2-3-15-183-113.us-east-2.compute.amazonaws.com/app/#/snapshot/genes
0 stars 1 forks source link

Updating data #14

Open scourgemancer opened 4 years ago

scourgemancer commented 4 years ago

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

scourgemancer commented 4 years ago

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 commented 4 years ago

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