UNPKG
yolo-scraper
Version:
beta (0.0.1)
latest (1.0.1)
1.0.1
0.2.0
0.1.0
0.0.3
0.0.2
0.0.1
A simple way to structure your web scraper.
github.com/masterT/yolo-scraper
masterT/yolo-scraper
yolo-scraper
/
spec
/
support
/
specHelper.js
11 lines
(8 loc)
•
221 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var
path =
require
(
'path'
)
var
fs =
require
(
'fs'
)
function
fixture
(
filename
) {
return
fs.
readFileSync
(path.
join
(__dirname,
'..'
,
'fixtures'
, filename), {
encoding
:
'utf8'
}) }
module
.
exports
= {
fixture
: fixture }