Skip to content

Commit a340ad1

Browse files
v6.3.4 (#663)
* feat(deps): regenerate package-lock.json * test: add test for method label in URL in Summary * 6.3.4
1 parent 605639f commit a340ad1

File tree

3 files changed

+25
-14
lines changed

3 files changed

+25
-14
lines changed

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "api-console",
33
"description": "The API Console to automatically generate API documentation from RAML and OAS files.",
4-
"version": "6.3.3",
4+
"version": "6.3.4",
55
"license": "CPAL-1.0",
66
"main": "index.js",
77
"module": "index.js",

test/api-console.amf.test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,17 @@ describe('<api-console>', function() {
120120
assert.isFalse(element.rearrangeEndpoints);
121121
assert.isFalse(element.shadowRoot.querySelector('api-documentation').rearrangeEndpoints);
122122
});
123+
124+
it('should not render method-label nor method-value in Summary view', async () => {
125+
element = await selectedFixture(amf, 'summary', 'summary')
126+
await nextFrame();
127+
await nextFrame();
128+
const apiDocumentation = element.shadowRoot.querySelector('api-documentation');
129+
const apiSummary = apiDocumentation.shadowRoot.querySelector('api-summary');
130+
const apiUrl = apiSummary.shadowRoot.querySelector('api-url');
131+
assert.notExists(apiUrl.shadowRoot.querySelector('.method-label'));
132+
assert.notExists(apiUrl.shadowRoot.querySelector('.method-value'));
133+
});
123134
});
124135
});
125136
});

0 commit comments

Comments
 (0)