| ... | @@ -14,7 +14,6 @@ import { | ... | @@ -14,7 +14,6 @@ import { |
| 14 | formatDiagnosticsDescription, | 14 | formatDiagnosticsDescription, |
| 15 | getChangedBrowserSettingLabels, | 15 | getChangedBrowserSettingLabels, |
| 16 | getChangedTypographySettingLabels, | 16 | getChangedTypographySettingLabels, |
| 17 | isSamePreviewViewport, | | |
| 18 | hasChangedBackgroundActivitySettings, | 17 | hasChangedBackgroundActivitySettings, |
| 19 | isProjectGroupingEnabled, | 18 | isProjectGroupingEnabled, |
| 20 | projectGroupingModeFromToggle, | 19 | projectGroupingModeFromToggle, |
| ... | @@ -282,25 +281,3 @@ describe("getChangedBrowserSettingLabels", () => { | ... | @@ -282,25 +281,3 @@ describe("getChangedBrowserSettingLabels", () => { |
| 282 | ]); | 281 | ]); |
| 283 | }); | 282 | }); |
| 284 | }); | 283 | }); |
| 285 | | | |
| 286 | describe("isSamePreviewViewport", () => { | | |
| 287 | it("separates presets that share a size", () => { | | |
| 288 | // Two presets can agree on width and height and still be different | | |
| 289 | // entries in the picker, so the id has to take part in the comparison. | | |
| 290 | expect( | | |
| 291 | isSamePreviewViewport( | | |
| 292 | { _tag: "preset", width: 390, height: 844, presetId: "iphone-12-pro" }, | | |
| 293 | { _tag: "preset", width: 390, height: 844, presetId: "ipad-mini" }, | | |
| 294 | ), | | |
| 295 | ).toBe(false); | | |
| 296 | }); | | |
| 297 | | | |
| 298 | it("separates a freeform viewport from a preset of the same size", () => { | | |
| 299 | expect( | | |
| 300 | isSamePreviewViewport( | | |
| 301 | { _tag: "freeform", width: 390, height: 844 }, | | |
| 302 | { _tag: "preset", width: 390, height: 844, presetId: "iphone-12-pro" }, | | |
| 303 | ), | | |
| 304 | ).toBe(false); | | |
| 305 | }); | | |
| 306 | }); | | |