Skip to content

Commit 7488fe5

Browse files
chore(deps): update dependency @openedx/frontend-build to v14.6.0 (#610)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jason Wesson <[email protected]>
1 parent fe6c726 commit 7488fe5

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.test.jsx

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,9 @@ describe('App router component', () => {
7474
it('loads dashboard', () => {
7575
const main = el.instance.findByType('main')[0];
7676
expect(main.children.length).toEqual(1);
77-
const dashboard = main.children[0];
77+
const dashboard = main.children[0].el;
7878
expect(dashboard.type).toEqual('Dashboard');
79-
expect(
80-
dashboard.matches(shallow(<Dashboard />)),
81-
).toEqual(true);
79+
expect(dashboard).toEqual(shallow(<Dashboard />));
8280
});
8381
});
8482
describe('no network failure with optimizely url', () => {
@@ -91,11 +89,9 @@ describe('App router component', () => {
9189
it('loads dashboard', () => {
9290
const main = el.instance.findByType('main')[0];
9391
expect(main.children.length).toEqual(1);
94-
const dashboard = main.children[0];
92+
const dashboard = main.children[0].el;
9593
expect(dashboard.type).toEqual('Dashboard');
96-
expect(
97-
dashboard.matches(shallow(<Dashboard />)),
98-
).toEqual(true);
94+
expect(dashboard).toEqual(shallow(<Dashboard />));
9995
});
10096
});
10197
describe('no network failure with optimizely project id', () => {
@@ -108,11 +104,9 @@ describe('App router component', () => {
108104
it('loads dashboard', () => {
109105
const main = el.instance.findByType('main')[0];
110106
expect(main.children.length).toEqual(1);
111-
const dashboard = main.children[0];
107+
const dashboard = main.children[0].el;
112108
expect(dashboard.type).toEqual('Dashboard');
113-
expect(
114-
dashboard.matches(shallow(<Dashboard />)),
115-
).toEqual(true);
109+
expect(dashboard).toEqual(shallow(<Dashboard />));
116110
});
117111
});
118112
describe('initialize failure', () => {

0 commit comments

Comments
 (0)