Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
smith committed Jan 28, 2021
1 parent f7394c6 commit f10a3fa
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,14 @@ describe('TraceLink', () => {
describe('when no transaction is found', () => {
it('renders a trace page', () => {
jest.spyOn(urlParamsHooks, 'useUrlParams').mockReturnValue({
incrementRangeId: () => {},
rangeId: 0,
refreshTimeRange: jest.fn(),
uiFilters: {},
urlParams: {
rangeFrom: 'now-24h',
rangeTo: 'now',
},
refreshTimeRange: jest.fn(),
uiFilters: {},
});
jest.spyOn(hooks, 'useFetcher').mockReturnValue({
data: { transaction: undefined },
Expand All @@ -87,12 +89,14 @@ describe('TraceLink', () => {
describe('transaction page', () => {
beforeAll(() => {
jest.spyOn(urlParamsHooks, 'useUrlParams').mockReturnValue({
incrementRangeId: () => {},
rangeId: 0,
refreshTimeRange: jest.fn(),
uiFilters: {},
urlParams: {
rangeFrom: 'now-24h',
rangeTo: 'now',
},
refreshTimeRange: jest.fn(),
uiFilters: {},
});
});

Expand Down

0 comments on commit f10a3fa

Please sign in to comment.