@mojojs/core
Preparing search index...
types
TestContext
Interface TestContext
interface
TestContext
{
afterEach
(
callback
:
()
=>
Promise
<
void
>
)
:
void
;
beforeEach
(
callback
:
(
t
:
TestContext
)
=>
Promise
<
void
>
)
:
void
;
end
()
:
void
;
equal
(
actual
:
any
,
expected
:
any
,
message
?:
string
)
:
void
;
match
(
actual
:
any
,
pattern
:
RegExp
,
message
?:
string
)
:
void
;
not
(
actual
:
any
,
expected
:
any
,
message
?:
string
)
:
void
;
notMatch
(
actual
:
any
,
pattern
:
RegExp
,
message
?:
string
)
:
void
;
ok
(
value
:
any
,
message
?:
string
)
:
void
;
plan
(
count
:
number
)
:
void
;
same
(
actual
:
any
,
expected
:
any
,
message
?:
string
)
:
void
;
skip
(
message
:
string
)
:
void
;
todo
(
message
:
string
)
:
void
;
}
Index
Methods
after
Each
before
Each
end
equal
match
not
not
Match
ok
plan
same
skip
todo
Methods
after
Each
afterEach
(
callback
:
()
=>
Promise
<
void
>
)
:
void
Parameters
callback
:
()
=>
Promise
<
void
>
Returns
void
before
Each
beforeEach
(
callback
:
(
t
:
TestContext
)
=>
Promise
<
void
>
)
:
void
Parameters
callback
:
(
t
:
TestContext
)
=>
Promise
<
void
>
Returns
void
end
end
()
:
void
Returns
void
equal
equal
(
actual
:
any
,
expected
:
any
,
message
?:
string
)
:
void
Parameters
actual
:
any
expected
:
any
Optional
message
:
string
Returns
void
match
match
(
actual
:
any
,
pattern
:
RegExp
,
message
?:
string
)
:
void
Parameters
actual
:
any
pattern
:
RegExp
Optional
message
:
string
Returns
void
not
not
(
actual
:
any
,
expected
:
any
,
message
?:
string
)
:
void
Parameters
actual
:
any
expected
:
any
Optional
message
:
string
Returns
void
not
Match
notMatch
(
actual
:
any
,
pattern
:
RegExp
,
message
?:
string
)
:
void
Parameters
actual
:
any
pattern
:
RegExp
Optional
message
:
string
Returns
void
ok
ok
(
value
:
any
,
message
?:
string
)
:
void
Parameters
value
:
any
Optional
message
:
string
Returns
void
plan
plan
(
count
:
number
)
:
void
Parameters
count
:
number
Returns
void
same
same
(
actual
:
any
,
expected
:
any
,
message
?:
string
)
:
void
Parameters
actual
:
any
expected
:
any
Optional
message
:
string
Returns
void
skip
skip
(
message
:
string
)
:
void
Parameters
message
:
string
Returns
void
todo
todo
(
message
:
string
)
:
void
Parameters
message
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
after
Each
before
Each
end
equal
match
not
not
Match
ok
plan
same
skip
todo
@mojojs/core
Loading...