Skip to content

Commit b16f463

Browse files
committed
Test: Fix tests for PRs styleguidist#242 and styleguidist#247
For some reason (most probably after transition to a GitHub organization) Travis CI stopped to check pull requests.
1 parent a9076e6 commit b16f463

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/rsg-components/StyleGuide/StyleGuide.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ test('should pass error message instead of components list when there is no comp
6464
components={<Message />}
6565
sections={[]}
6666
toc={<TableOfContents components={[]} sections={[]}/>}
67-
sidebar
6867
/>
6968
);
7069
});

test/loaders.styleguide.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import styleguideLoader from '../loaders/styleguide.loader';
55
test('should return valid, parsable JS', t => {
66
const file = 'components/Button/Button.js';
77
const result = styleguideLoader.pitch.call({
8+
addContextDependency: () => {},
89
request: file,
910
options: {
1011
styleguidist: {
@@ -22,6 +23,7 @@ test('should return valid, parsable JS', t => {
2223
test('should return correct component paths: glob', t => {
2324
const file = 'components/Button/Button.js';
2425
const result = styleguideLoader.pitch.call({
26+
addContextDependency: () => {},
2527
request: file,
2628
options: {
2729
styleguidist: {
@@ -41,6 +43,7 @@ test('should return correct component paths: glob', t => {
4143
test('should return correct component paths: function returning absolute paths', t => {
4244
const file = 'components/Button/Button.js';
4345
const result = styleguideLoader.pitch.call({
46+
addContextDependency: () => {},
4447
request: file,
4548
options: {
4649
styleguidist: {
@@ -63,6 +66,7 @@ test('should return correct component paths: function returning absolute paths',
6366
test('should return correct component paths: function returning relative paths', t => {
6467
const file = 'components/Button/Button.js';
6568
const result = styleguideLoader.pitch.call({
69+
addContextDependency: () => {},
6670
request: file,
6771
options: {
6872
styleguidist: {

0 commit comments

Comments
 (0)