Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Oct 20, 2021
1 parent 283bd50 commit 8311a51
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,12 @@ test('Should show tabs: View samples', async () => {
});

test('Should copy data table content correctly', async () => {
fetchMock.post(/api\/v1\/chart\/data\?form_data=%7B%22slice_id%22%3A456%7D/, {
result: [{ data: [{ __timestamp: 1230768000000, genre: 'Action' }] }],
});
fetchMock.post(
'glob:*/api/v1/chart/data?form_data=%7B%22slice_id%22%3A456%7D',
{
result: [{ data: [{ __timestamp: 1230768000000, genre: 'Action' }] }],
},
);
const copyToClipboardSpy = jest.spyOn(copyUtils, 'default');
const props = createProps();
render(
Expand Down

0 comments on commit 8311a51

Please sign in to comment.