Public Access
feat(points): apply worn effects on covers, details and backgrounds
This commit is contained in:
1 parent
dd45c0b5f6
commit
249973dd69
19 files changed
+317
-35
No files matched your search
@@ -27,6 +27,13 @@ describe('PageBackground', () => {
|
||||
expect(container.innerHTML).toBe('');
|
||||
});
|
||||
|
||||
it('shows a worn animated background instead of the art', () => {
|
||||
const {container} = render(<PageBackground appid={620} effect="aurora"/>);
|
||||
|
||||
expect(container.querySelector('[data-effect="aurora"]')).not.toBeNull();
|
||||
expect(container.querySelector('img')).toBeNull();
|
||||
});
|
||||
|
||||
it('starts with the library art again for another game', () => {
|
||||
const {container, rerender} = render(<PageBackground appid={620}/>);
|
||||
fireEvent.error(container.querySelector('img'));
|
||||
|
||||
Reference in new issue
Block a user