add secure requests with tokens.

generate new token on every new page load
This commit is contained in:
2021-03-09 12:56:53 +00:00
parent 162b4efd0e
commit c24c2ac2d8
7 changed files with 372 additions and 35 deletions

View File

@ -12,12 +12,8 @@ describe('<ActorTile/>', function () {
const func = jest.fn((_) => {});
const wrapper = shallow(<ActorTile actor={{Thumbnail: '-1', Name: 'testname', id: 3}} onClick={() => func()}/>);
const func1 = jest.fn();
prepareViewBinding(func1);
wrapper.simulate('click');
expect(func1).toBeCalledTimes(0);
expect(func).toBeCalledTimes(1);
});
});