Skip to content

Commit

Permalink
Fix tests on release
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Apr 16, 2018
1 parent a90efee commit 5c3d616
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## 1.1.1 - 2018-04-15
* Fix tests during release stage

## 1.1.0 - 2018-04-15
* Add atom feed url modifier function to a new options argument

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"test:tape": "nyc --reporter=lcov tape 'test.js' | tap-format-spec",
"test:deps": "dependency-check package.json --missing --unused --no-dev",
"update": "node generate-snapshot.js",
"version": "run-s update && git add snapshot.xml"
"version": "run-s update && git add snapshot.xml snapshot.json"
}
}
2 changes: 1 addition & 1 deletion snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"generator": {
"@uri": "https://github.com/bcomnes/jsonfeed-to-atom#readme",
"@version": "1.0.3",
"@version": "1.1.0",
"#text": "jsonfeed-to-atom"
},
"icon": "https://bret.io/favicon-64x64.png",
Expand Down
3 changes: 2 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const jsonfeedToAtom = require('./')
const generateTitle = require('./lib/generate-title')
const test = require('tape')
const fs = require('fs')
const packageInfo = require('./package.json')

test('missing property errors', t => {
t.throws(() => {
Expand Down Expand Up @@ -93,7 +94,7 @@ test('test logic branches', {objectPrintDepth: 10}, t => {
{ '@rel': 'self', '@type': 'application/atom+xml', '@href': 'https://jsonfeed.org/version/feed.xml' },
{ '@rel': 'alternate', '@type': 'application/json', '@href': 'https://jsonfeed.org/version/feed.json' }
],
generator: { '@uri': 'https://github.com/bcomnes/jsonfeed-to-atom#readme', '@version': '1.0.3', '#text': 'jsonfeed-to-atom' },
generator: { '@uri': 'https://github.com/bcomnes/jsonfeed-to-atom#readme', '@version': packageInfo.version, '#text': 'jsonfeed-to-atom' },
entry: [
{
id: 'a-unique-id',
Expand Down

0 comments on commit 5c3d616

Please sign in to comment.