Skip to content

Commit 933cd8e

Browse files
committed
update snapshots to include context
1 parent ec3a055 commit 933cd8e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

exercises/specs/components/__snapshots__/exercise.spec.js.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,6 +1733,13 @@ exports[`Exercises component renders and matches snapshot 1`] = `
17331733
Author: Alene
17341734
</div>
17351735
</div>
1736+
<div
1737+
dangerouslySetInnerHTML={
1738+
Object {
1739+
"__html": "<h3>read this chapter first</h3>",
1740+
}
1741+
}
1742+
/>
17361743
<div
17371744
className="openstax-exercise-preview exercise-editing-preview is-displaying-formats is-displaying-feedback card"
17381745
data-exercise-id="1@1"
@@ -5049,6 +5056,7 @@ exports[`Exercises component renders with intro and a multiple questions when ex
50495056
Author: Louvenia
50505057
</div>
50515058
</div>
5059+
50525060
<div
50535061
className="openstax-exercise-preview exercise-editing-preview is-displaying-formats is-displaying-feedback card"
50545062
data-exercise-id="9@1"

exercises/specs/components/exercise.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describe('Exercises component', () => {
2727
});
2828

2929
it('renders and matches snapshot', () => {
30+
exercise.context = '<h3>read this chapter first</h3>'
3031
expect.snapshot(<Router><Exercise {...props} /></Router>).toMatchSnapshot();
3132
});
3233

0 commit comments

Comments
 (0)