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
4 changes: 3 additions & 1 deletion tests/e2e/workflows/integrations-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ test.describe('Integrations over the connection registry', () => {
await saveBreachCheck(page, true)
await expect
.poll(hibpRow, { timeout: 15_000 })
.toBe('unconfigured|Not checked yet. Keepiq reports here after the next password check reaches Have I Been Pwned.')
.toBe(
'unconfigured|Not checked yet. Keepiq reports here after the next password check reaches Have I Been Pwned.',
)
} finally {
// Put the VALUE back. The restore is a save too, so it refreshes the row again.
await saveBreachCheck(page, previous)
Expand Down
13 changes: 10 additions & 3 deletions tests/vitest/connectionRegistry.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,18 @@ describe('the Integrations page declaration', () => {
assign: () => {},
})

expect(typeof registry.date, 'the built-in formatter map was read').toBe('function')
const named = page.config.columns.filter((c) => c.formatter).map((c) => c.formatter)
expect(typeof registry.date, 'the built-in formatter map was read').toBe(
'function',
)
const named = page.config.columns
.filter((c) => c.formatter)
.map((c) => c.formatter)
expect(named.sort()).toEqual(['connectionSettingsLabel', 'connectionStatus'])
for (const formatter of named) {
expect(typeof registry[formatter], `@conduction/nextcloud-vue ships ${formatter}`).toBe('function')
expect(
typeof registry[formatter],
`@conduction/nextcloud-vue ships ${formatter}`,
).toBe('function')
}
for (const action of page.config.headerActions) {
expect(typeof handlers[action.handler], action.handler).toBe('function')
Expand Down
Loading