Skip to content
Snippets Groups Projects
Commit 9587581c authored by Rhys Arkins's avatar Rhys Arkins
Browse files

tests: drop flakey changelog cache test

parent 0dd52209
No related branches found
No related tags found
No related merge requests found
...@@ -103,15 +103,6 @@ describe('workers/pr/changelog', () => { ...@@ -103,15 +103,6 @@ describe('workers/pr/changelog', () => {
}) })
).toMatchSnapshot(); ).toMatchSnapshot();
}); });
it('returns cached JSON', async () => {
ghGot.mockClear();
const first = await getChangeLogJSON({ ...upgrade });
const firstCallsCount = ghGot.mock.calls.length;
const second = await getChangeLogJSON({ ...upgrade });
const secondCallsCount = ghGot.mock.calls.length - firstCallsCount;
expect(first).toEqual(second);
expect(firstCallsCount).toBeGreaterThan(secondCallsCount);
});
it('filters unnecessary warns', async () => { it('filters unnecessary warns', async () => {
ghGot.mockImplementation(() => { ghGot.mockImplementation(() => {
throw new Error('Unknown Github Repo'); throw new Error('Unknown Github Repo');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment