mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
* feat(install-user-template): Install a user template * Review feedback * Review feedback v2
13 lines
312 B
JavaScript
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) }
|
|
}
|