Skip to content

Commit

Permalink
bulk of it removed, tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
handeyeco committed Dec 5, 2024
1 parent 22faad9 commit 65722b5
Show file tree
Hide file tree
Showing 31 changed files with 3 additions and 7,432 deletions.
23 changes: 0 additions & 23 deletions packages/perseus-editor/src/__tests__/i18n.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,27 +475,4 @@ describe("i18n", () => {
});
});
});

describe("Multi-item image finding", () => {
it("should find all of the images in each leaf node", () => {
const foundImages = i18n.findImagesInItemData({
_multi: {
question: {
__type: "content",
...exerciseImagesEverywhere.question,
},
hints: exerciseImagesEverywhere.hints.map((hint) => ({
__type: "hint",
...hint,
})),
},
});

expect(foundImages.length <= allImages.length).toBeTruthy();

_.each(allImages, (image) => {
expect(foundImages.indexOf(image) !== -1).toBeTruthy();
});
});
});
});
Loading

0 comments on commit 65722b5

Please sign in to comment.