Skip to content

Commit 54569c9

Browse files
authored
Merge pull request rbren#1 from bobby-brennan/master
Update with parent fork
2 parents 59cc76d + dd76795 commit 54569c9

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,15 @@ RSSParser.parseURL('https://www.reddit.com/.rss', function(err, parsed) {
4242
</script>
4343
```
4444

45+
### Running Tests
46+
The tests run the RSS parser for several sample RSS feeds in `test/input` and outputs the resulting JSON into `test/output`. If there are any changes to the output files the tests will fail.
47+
48+
To check if your changes affect the output of any test cases, run
49+
50+
`npm test`
51+
52+
To update the output files with your changes, run
53+
54+
`WRITE_GOLDEN=true npm test`
55+
56+

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rss-parser",
3-
"version": "2.2.4",
3+
"version": "2.4.0",
44
"main": "index.js",
55
"scripts": {
66
"test": "mocha"

test/output/narro.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@
4343
"explicit": "no"
4444
}
4545
}
46-
}
46+
}

0 commit comments

Comments
 (0)