Skip to content

Commit

Permalink
fixup! feat(user): add user/me endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Rötsch committed Sep 19, 2017
1 parent 45842f5 commit 0336c3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/create-contentful-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import { createRequestConfig } from 'contentful-sdk-core'
import errorHandler from './error-handler'
import entities from './entities'
import {wrapUser} from './entities/user'
/**
* Creates API object with methods to access functionality from Contentful's
* Management API
Expand All @@ -53,6 +52,7 @@ import {wrapUser} from './entities/user'
*/
export default function createClientApi ({ http }) {
const {wrapSpace, wrapSpaceCollection} = entities.space
const {wrapUser} = entities.user
const {wrapOrganizationCollection} = entities.organization

/**
Expand Down
3 changes: 3 additions & 0 deletions test/unit/mocks/entities.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ function setupEntitiesMock (rewiredModuleApi) {
uiExtension: {
wrapUiExtension: sinon.stub(),
wrapUiExtensionCollection: sinon.stub()
},
user: {
wrapUser: sinon.stub()
}
}
rewiredModuleApi.__Rewire__('entities', entitiesMock)
Expand Down

0 comments on commit 0336c3c

Please sign in to comment.