UNPKG
yenv
Version:
latest (3.0.1)
3.0.1
3.0.0
2.1.1
2.1.0
2.0.1
2.0.0
2.0.0-rc.4
2.0.0-rc.3
2.0.0-rc.2
2.0.0-rc.1
2.0.0-rc.0
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.2.0
0.1.2
0.1.1
0.1.0
Environment management using YAML.
github.com/jeffijoe/yenv
jeffijoe/yenv
yenv
/
test
/
_helpers
/
fixture.js
14 lines
(12 loc)
•
277 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
const
path =
require
(
'path'
)
/** * Makes a fixture function. * *
@param
{
string
}
folder
*
@return
{
Function
} */
module
.
exports
=
function
makeFixture
(
folder
) {
const
fixture
= (
file
) => path.
join
(__dirname,
'../fixtures'
, folder, file)
return
fixture }