Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/xar-resources/modules/app.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ function app:print-function-header($function as element(xqdoc:function)) as elem
<span class="hljs-type">{$para/xqdoc:type/string()}</span>,
$para/xqdoc:type/@occurrence/string() || $comma
)
}) <span class="hljs-keyword">as</span>&#160;<span class="hljs-type">{$function/xqdoc:return/xqdoc:type/string()}</span>
}) <span class="hljs-keyword">as</span>&#160;<span class="hljs-type">{$function/xqdoc:return/xqdoc:type/string()}</span>{$function/xqdoc:return/xqdoc:type/@occurrence/string()}
</code></pre>
</header>
};
Expand Down
9 changes: 9 additions & 0 deletions src/test/cypress/integration/fundoc_spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ context('Function Documentation', () => {
})
})

describe('Searching for a specific function, map:keys', () => {
it('should show the correct function signature', () => {
cy.visit('?q=map%3Akeys').get('.signature')
.should('have.text', 'map:keys($map as map(*)) as xs:anyAtomicType*')
})
})



describe('browse', () => {
it('should find local modules', () => {
cy.get('#browse')
Expand Down