UNPKG
lux-framework
Version:
latest (1.2.3)
1.2.3
1.2.2
1.2.1
1.2.0
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0-rc.7
1.0.0-rc.6
1.0.0-rc.5
1.0.0-rc.4
1.0.0-rc.3
1.0.0-rc.2
1.0.0-rc.1
1.0.0-rc
0.0.1-beta.13
0.0.1-beta.12
0.0.1-beta.11
0.0.1-beta.10
0.0.1-beta.9
0.0.1-beta.8
0.0.1-beta.7
0.0.1-beta.6
0.0.1-beta.5
0.0.1-beta.4
0.0.1-beta.3
0.0.1-beta.2
0.0.1-beta.1
0.0.1-beta
Build scalable, Node.js-powered REST APIs with almost no code.
lux.postlight.com
postlight/lux
lux-framework
/
src
/
utils
/
test
/
set-type.test.js
12 lines
(9 loc)
•
285 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
// @flow
import
{ expect }
from
'chai'
;
import
{ it, describe }
from
'mocha'
;
import
setType
from
'../set-type'
;
describe
(
'util setType()'
,
() =>
{
it
(
'returns the function call of the first and only argument'
,
() =>
{
expect
(
setType
(
() =>
'Test'
)).
to
.
equal
(
'Test'
); }); });