mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Add: Device info
This commit is contained in:
@@ -12,6 +12,11 @@ describe('default', function ()
|
||||
{
|
||||
expect($tool.find('.eruda-content').eq(1)).toContainText(navigator.userAgent);
|
||||
});
|
||||
|
||||
it('device', function ()
|
||||
{
|
||||
expect($tool.find('.eruda-content').eq(2)).toContainText(window.innerWidth);
|
||||
});
|
||||
});
|
||||
|
||||
describe('basic', function ()
|
||||
@@ -34,4 +39,4 @@ describe('basic', function ()
|
||||
tool.remove('test');
|
||||
expect($tool.find('li')).toHaveLength(0);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user