Skip to content

Commit 40d290c

Browse files
committed
Touch up
1 parent 13d3f61 commit 40d290c

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/app/content/studyGuides/components/ShowStudyGuides.spec.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import { assertWindow } from '../../../utils';
1212
import { loadMoreStudyGuides } from '../actions';
1313
import { HTMLElement } from '@openstax/types/lib.dom';
1414
import * as selectors from '../selectors';
15-
import ShowStudyGuides, { StudyGuidesBody } from './ShowStudyGuides';
15+
import ShowStudyGuides from './ShowStudyGuides';
16+
import { PopupBody as StudyGuidesBody } from '../../styles/PopupStyles';
1617

1718
describe('ShowStudyGuides', () => {
1819
let store: Store;

src/app/content/studyGuides/components/ShowStudyGuides.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ import StudyGuidesCTA from './StudyGuidesCTA';
1414
import StudyGuidesToasts from './StudyGuidesToasts';
1515
import './ShowStudyGuides.css';
1616

17-
// Export PopupBody as StudyGuidesBody for test compatibility
18-
// The actual styling is now in ShowStudyGuides.css
19-
export const StudyGuidesBody = PopupBody;
20-
2117
const ShowStudyGuides = ({topElRef}: {topElRef: React.RefObject<HTMLElement>}) => {
2218
const ref = React.useRef<HTMLElement>(null);
2319
const [showGoToTop, setShowGoToTop] = React.useState(false);

src/app/content/studyGuides/components/StudyGuidesCTA/index.spec.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ describe('StudyGuidesCTA', () => {
2020
<StudyGuidesCTA />
2121
</TestContainer>);
2222

23-
// After migration to plain CSS, check for the wrapper div by className
2423
expect(() => component.root.findByProps({ className: 'study-guides-cta-wrapper' })).toThrow();
2524
});
2625

0 commit comments

Comments
 (0)