Skip to content

Commit 294d2e1

Browse files
fix tests
1 parent f7eb55c commit 294d2e1

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

packages/react-native-nitro-storage/src/__tests__/internal.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ describe("special number serialization", () => {
189189

190190
it("deserializes -Infinity correctly", () => {
191191
expect(
192-
deserializeWithPrimitiveFastPath("__nitro_storage_primitive__:n:-Infinity"),
192+
deserializeWithPrimitiveFastPath(
193+
"__nitro_storage_primitive__:n:-Infinity",
194+
),
193195
).toBe(-Infinity);
194196
});
195197

@@ -214,9 +216,7 @@ describe("special number serialization", () => {
214216

215217
describe("toVersionToken", () => {
216218
it('returns "missing" token for undefined', () => {
217-
expect(toVersionToken(undefined)).toBe(
218-
"__nitro_storage_version__:missing",
219-
);
219+
expect(toVersionToken(undefined)).toBe("__nitro_storage_version__:missing");
220220
});
221221

222222
it("returns consistent hash for same string", () => {

packages/react-native-nitro-storage/src/__tests__/storage.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,9 +1972,9 @@ describe("isKeychainLockedError", () => {
19721972
});
19731973

19741974
it('returns true for "android.security.keystore"', () => {
1975-
expect(
1976-
isKeychainLockedError(new Error("android.security.keystore")),
1977-
).toBe(true);
1975+
expect(isKeychainLockedError(new Error("android.security.keystore"))).toBe(
1976+
true,
1977+
);
19781978
});
19791979

19801980
it("returns false for unrelated Error", () => {
@@ -2215,9 +2215,7 @@ describe("createSecureAuthStorage", () => {
22152215
);
22162216

22172217
auth.token.set("val");
2218-
mockHybridObject.get.mockReturnValue(
2219-
serializeWithPrimitiveFastPath("val"),
2220-
);
2218+
mockHybridObject.get.mockReturnValue(serializeWithPrimitiveFastPath("val"));
22212219

22222220
// The item was created — ttlMs presence is verified by the factory accepting it
22232221
// without throwing. We verify the item is functional.

0 commit comments

Comments
 (0)