diff --git a/test/fixture/package/src/ExponentiationOperator/Definition.js b/test/fixture/package/src/ExponentiationOperator/Definition.js new file mode 100644 index 00000000..427e0192 --- /dev/null +++ b/test/fixture/package/src/ExponentiationOperator/Definition.js @@ -0,0 +1,12 @@ +/** + * this is TestExponentiationOperatorDefinition. + */ +export default class TestExponentiationOperatorDefinition { + /** + * this is method1. + * @return {number} + */ + method1(){ + return 2 ** 3 ; + } +} diff --git a/test/src/HTMLTest/CoverageTest/CoverageTest.js b/test/src/HTMLTest/CoverageTest/CoverageTest.js index 8bda6c7a..a19409a6 100644 --- a/test/src/HTMLTest/CoverageTest/CoverageTest.js +++ b/test/src/HTMLTest/CoverageTest/CoverageTest.js @@ -9,8 +9,8 @@ describe('test coverage', ()=> { it('has coverage summary', ()=> { assert(badge.includes('79%')); assert.includes(doc, '[data-ice="coverageBadge"]', './badge.svg', 'src'); - assert.includes(doc, '[data-ice="totalCoverageCount"]', '258/325'); - assert.equal(doc.find('[data-ice="file"] [data-ice="coverage"]').length, 114); + assert.includes(doc, '[data-ice="totalCoverageCount"]', '260/327'); + assert.equal(doc.find('[data-ice="file"] [data-ice="coverage"]').length, 115); }); /* eslint-disable max-statements */ @@ -55,6 +55,7 @@ describe('test coverage', ()=> { test('file/src/Experimental/Class.js.html', '100 %4/4'); test('file/src/Experimental/Function.js.html', '100 %1/1'); test('file/src/Experimental/Variable.js.html', '100 %1/1'); + test('file/src/ExponentiationOperator/Definition.js.html', '100 %2/2'); test('file/src/Export/AnonymousClass.js.html', '100 %1/1'); test('file/src/Export/AnonymousFunction.js.html', '100 %1/1'); test('file/src/Export/Class.js.html#errorLines=24', '80 %4/5'); @@ -138,6 +139,6 @@ describe('test coverage', ()=> { test('file/src/Version/Function.js.html', '100 %1/1'); test('file/src/Version/Variable.js.html', '100 %1/1'); - assert.equal(count, 114); + assert.equal(count, 115); }); }); diff --git a/test/src/HTMLTest/DocumentTest/ExponentialOperatorTest/DefinitionTest.js b/test/src/HTMLTest/DocumentTest/ExponentialOperatorTest/DefinitionTest.js new file mode 100644 index 00000000..f9764e13 --- /dev/null +++ b/test/src/HTMLTest/DocumentTest/ExponentialOperatorTest/DefinitionTest.js @@ -0,0 +1,28 @@ +import {readDoc, assert, findParent} from './../../../util.js'; + +/** @test {ESParser} */ +describe('TestExponentiationOperatorDefinition', ()=> { + const doc = readDoc('class/src/ExponentiationOperator/Definition.js~TestExponentiationOperatorDefinition.html'); + + describe('in self detail', ()=> { + it('has desc.', ()=> { + assert.includes(doc, '.self-detail [data-ice="description"]', 'this is TestExponentiationOperatorDefinition.'); + }); + }); + + describe('in summary', ()=> { + it('has desc', ()=> { + findParent(doc, '[data-ice="summary"] [href$="#instance-method-method1"]', '[data-ice="target"]', (doc)=> { + assert.includes(doc, '[data-ice="description"]', 'this is method1.'); + }); + }); + }); + + describe('in details', ()=>{ + it('has desc.', ()=>{ + findParent(doc, '[id="instance-method-method1"]', '[data-ice="detail"]', (doc)=>{ + assert.includes(doc, '[data-ice="description"]', 'this is method1.'); + }); + }); + }); +});