Files
baserow/web-frontend/test/helpers/heldBack.js
Przemyslaw Kukulski 356f9a9da6 feat: install a user template (#6460)
* feat(install-user-template): Install a user template

* Review feedback

* Review feedback v2
2026-10-28 14:07:20 +01:00

13 lines
312 B
JavaScript

/**
* A mock server reply that is sent only when the test calls `send`, with the
* `[status, data]` the reply would return.
*/
export const heldBack = () => {
let send = null
const reply = () =>
new Promise((resolve) => {
send = resolve
})
return { reply, send: (value) => send(value) }
}