Search
Preparing search index...
The search index is not available
@balena/jellyfish-queue
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@balena/jellyfish-queue
testUtils
TestContext
Interface TestContext
Context that can be used in tests against the queue.
Hierarchy
TestContext
TestContext
Index
Properties
cache
kernel
log
Context
pool
queue
session
Methods
create
Link
create
Org
create
Session
create
User
dequeue
Properties
cache
cache
:
Cache
kernel
kernel
:
Kernel
log
Context
log
Context
:
LogContext
pool
pool
:
Pool
queue
queue
:
{
actor
:
string
;
consumer
:
Consumer
;
producer
:
Producer
}
Type declaration
actor
:
string
consumer
:
Consumer
producer
:
Producer
session
session
:
string
Methods
create
Link
create
Link
(
fromCard
:
Contract
<
ContractData
,
{}
>
, toCard
:
Contract
<
ContractData
,
{}
>
, verb
:
string
, inverseVerb
:
string
)
:
Promise
<
LinkContract
>
Parameters
fromCard:
Contract
<
ContractData
,
{}
>
toCard:
Contract
<
ContractData
,
{}
>
verb:
string
inverseVerb:
string
Returns
Promise
<
LinkContract
>
create
Org
create
Org
(
name
:
string
)
:
Promise
<
OrgContract
>
Parameters
name:
string
Returns
Promise
<
OrgContract
>
create
Session
create
Session
(
user
:
UserContract
)
:
Promise
<
SessionContract
>
Parameters
user:
UserContract
Returns
Promise
<
SessionContract
>
create
User
create
User
(
username
:
string
, hash
?:
string
, roles
?:
string
[]
)
:
Promise
<
UserContract
>
Parameters
username:
string
Optional
hash:
string
Optional
roles:
string
[]
Returns
Promise
<
UserContract
>
dequeue
dequeue
(
times
?:
number
)
:
Promise
<
null
|
ActionRequestContract
>
Parameters
Optional
times:
number
Returns
Promise
<
null
|
ActionRequestContract
>
Exports
errors
events
test
Utils
Test
Context
cache
kernel
log
Context
pool
queue
session
create
Link
create
Org
create
Session
create
User
dequeue
Generated using
TypeDoc
Context that can be used in tests against the queue.