Skip to content

Commit

Permalink
Merge pull request #20 from kadirahq/correct-context
Browse files Browse the repository at this point in the history
Context should contain only the story name
  • Loading branch information
arunoda authored Sep 25, 2016
2 parents 636eec0 + 1a06207 commit 8753053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test_runner/snapshot_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class SnapshotRunner {

const key = story.name;
const hasSnapshot = snapshot.has(key);
const context = { kind: this.kind, story };
const context = { kind: this.kind, story: story.name };
const tree = story.render(context);
const renderer = ReactTestRenderer.create(tree);
const actual = renderer.toJSON();
Expand Down

0 comments on commit 8753053

Please sign in to comment.