UNPKG
final-config
Version:
latest (0.1.2)
0.1.2
0.1.1
0.1.0
Asynchronous configuration loading from various sources
github.com/inre/set-config
inre/set-config
final-config
/
tests
/
BaseConfig.test.js
10 lines
(8 loc)
•
210 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
BaseConfig
=
require
(
'../lib/BaseConfig'
)
test
(
'load BaseConfig'
,
async
(done) => {
const
config =
new
BaseConfig
() config.
on
(
'error'
,
(
e
) =>
{
expect
(e).
toBeInstanceOf
(
Error
)
done
() }) })