@@ -5,6 +5,7 @@ import styleguideLoader from '../loaders/styleguide.loader';
5
5
test ( 'should return valid, parsable JS' , t => {
6
6
const file = 'components/Button/Button.js' ;
7
7
const result = styleguideLoader . pitch . call ( {
8
+ addContextDependency : ( ) => { } ,
8
9
request : file ,
9
10
options : {
10
11
styleguidist : {
@@ -22,6 +23,7 @@ test('should return valid, parsable JS', t => {
22
23
test ( 'should return correct component paths: glob' , t => {
23
24
const file = 'components/Button/Button.js' ;
24
25
const result = styleguideLoader . pitch . call ( {
26
+ addContextDependency : ( ) => { } ,
25
27
request : file ,
26
28
options : {
27
29
styleguidist : {
@@ -41,6 +43,7 @@ test('should return correct component paths: glob', t => {
41
43
test ( 'should return correct component paths: function returning absolute paths' , t => {
42
44
const file = 'components/Button/Button.js' ;
43
45
const result = styleguideLoader . pitch . call ( {
46
+ addContextDependency : ( ) => { } ,
44
47
request : file ,
45
48
options : {
46
49
styleguidist : {
@@ -63,6 +66,7 @@ test('should return correct component paths: function returning absolute paths',
63
66
test ( 'should return correct component paths: function returning relative paths' , t => {
64
67
const file = 'components/Button/Button.js' ;
65
68
const result = styleguideLoader . pitch . call ( {
69
+ addContextDependency : ( ) => { } ,
66
70
request : file ,
67
71
options : {
68
72
styleguidist : {
0 commit comments