Skip to content

Commit 6485555

Browse files
test(mobile): check configChanges flags without depending on order
1 parent 69497b0 commit 6485555

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/mobile/plugins/withAndroidTabletOrientation.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ describe("withAndroidTabletOrientation", () => {
8585
expect(mainActivity.$["android:screenOrientation"]).toBeUndefined();
8686
// Rotation and fold/unfold must keep reaching onConfigurationChanged
8787
// instead of recreating the activity.
88-
expect(mainActivity.$["android:configChanges"]).toContain(
89-
"orientation|screenSize|screenLayout|uiMode|smallestScreenSize",
88+
expect(mainActivity.$["android:configChanges"]?.split("|")).toEqual(
89+
expect.arrayContaining(["orientation", "screenSize", "smallestScreenSize"]),
9090
);
9191
});
9292

0 commit comments

Comments
 (0)