UNPKG
conflux
Version:
latest (1.1.8)
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
Distributed predictable state container
github.com/ben-ng/conflux
ben-ng/conflux
conflux
/
test
/
options-validation.js
11 lines
(8 loc)
•
221 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var
conflux =
require
(
'../'
) , tap =
require
(
'tap'
) tap.
test
(
'validates required options'
,
function
(
t
) { t.
plan
(
1
) t.
throws
(
function
(
) {
conflux
() },
/is required/
,
'should throw on missing arguments'
) })