diff --git a/src/Info/defInfo.js b/src/Info/defInfo.js index f448817..0f55b86 100644 --- a/src/Info/defInfo.js +++ b/src/Info/defInfo.js @@ -26,5 +26,9 @@ export default [ ` + }, + { + name: 'About', + val: 'Eruda v' + VERSION + '' } ]; diff --git a/test/info.js b/test/info.js index 0e547f0..1abfc15 100644 --- a/test/info.js +++ b/test/info.js @@ -19,27 +19,29 @@ describe('info', function () { expect($tool.find('.eruda-content').eq(2)).toContainText(window.innerWidth); }); + + it('about', function () + { + expect($tool.find('.eruda-content').eq(3)).toHaveText(/Eruda v[\d.]+/); + }); }); - describe('basic', function () + it('clear', function () { - it('clear', function () - { - tool.clear(); - expect($tool.find('li')).toHaveLength(0); - }); + tool.clear(); + expect($tool.find('li')).toHaveLength(0); + }); - it('add', function () - { - tool.add('test', 'eruda'); - expect($tool.find('.eruda-title')).toContainText('test'); - expect($tool.find('.eruda-content')).toContainText('eruda'); - }); + it('add', function () + { + tool.add('test', 'eruda'); + expect($tool.find('.eruda-title')).toContainText('test'); + expect($tool.find('.eruda-content')).toContainText('eruda'); + }); - it('remove', function () - { - tool.remove('test'); - expect($tool.find('li')).toHaveLength(0); - }); + it('remove', function () + { + tool.remove('test'); + expect($tool.find('li')).toHaveLength(0); }); }); \ No newline at end of file