Skip to content

Commit fb69257

Browse files
authored
Merge pull request #3 from AmpleOrganics/make-createStubbedComponent-exportable-from-root
make createStubbedComponent exportable from root
2 parents 7fe6d1c + 4b180c6 commit fb69257

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

lib/index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ Object.defineProperty(exports, "toHaveBeenLastCalledWithPayload", {
3333
return _toHaveBeenLastCalledWithPayload.toHaveBeenLastCalledWithPayload;
3434
}
3535
});
36+
Object.defineProperty(exports, "createStubbedComponent", {
37+
enumerable: true,
38+
get: function get() {
39+
return _createStubbedComponent.createStubbedComponent;
40+
}
41+
});
3642

3743
var _mockRouterComponents = require("./mockRouterComponents");
3844

@@ -42,4 +48,6 @@ var _toHaveRouteName = require("./toHaveRouteName");
4248

4349
var _toHaveBeenNthCalledWithPayload = require("./toHaveBeenNthCalledWithPayload");
4450

45-
var _toHaveBeenLastCalledWithPayload = require("./toHaveBeenLastCalledWithPayload");
51+
var _toHaveBeenLastCalledWithPayload = require("./toHaveBeenLastCalledWithPayload");
52+
53+
var _createStubbedComponent = require("./createStubbedComponent");

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ export { mockStoreActionsAndGetters } from './mockStoreActionsAndGetters'
33
export { toHaveRouteName } from './toHaveRouteName'
44
export { toHaveBeenNthCalledWithPayload } from './toHaveBeenNthCalledWithPayload'
55
export { toHaveBeenLastCalledWithPayload } from './toHaveBeenLastCalledWithPayload'
6+
export { createStubbedComponent } from './createStubbedComponent'

tests/unit/index.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ describe('toHaveRouteName', () => {
66
'mockStoreActionsAndGetters',
77
'toHaveRouteName',
88
'toHaveBeenNthCalledWithPayload',
9-
'toHaveBeenLastCalledWithPayload'
9+
'toHaveBeenLastCalledWithPayload',
10+
'createStubbedComponent'
1011
]
1112

1213
it('should export all helpers', () => {

0 commit comments

Comments
 (0)