Skip to content

Commit

Permalink
Renamed boundActionCreators -> actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisDS committed Jan 14, 2019
1 parent f98ebf5 commit 7726abb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ const Promise = require('bluebird');
const ContentAPI = require('./content-api');
const {PostNode, PageNode, TagNode, AuthorNode, SettingsNode} = require('./ghost-nodes');

exports.sourceNodes = ({boundActionCreators}, configOptions) => {
const {createNode} = boundActionCreators;
exports.sourceNodes = ({actions}, configOptions) => {
const {createNode} = actions;

const api = ContentAPI.configure(configOptions);

const postAndPageFetchOptions = {
Expand Down
2 changes: 1 addition & 1 deletion test/gatsby-node.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Basic Functionality', function () {
const createNode = sinon.stub();

gatsbyNode
.sourceNodes({boundActionCreators: {createNode}}, {})
.sourceNodes({actions: {createNode}}, {})
.then(() => {
createNode.callCount.should.eql(7);

Expand Down

0 comments on commit 7726abb

Please sign in to comment.