Skip to content

Commit 2f00765

Browse files
tshmieldevtjzel
authored andcommitted
lint
1 parent 1d2942f commit 2f00765

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

apps/common-app/src/apps/reanimated/examples/RuntimeTests/tests/memory/createSerializable.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ describe('Test createSerializable', () => {
618618
}
619619
const inaccessibleObject = new Inaccessible();
620620

621-
expect(() => {
621+
await expect(() => {
622622
createSerializable(inaccessibleObject);
623623
}).not.toThrow();
624624

@@ -681,14 +681,14 @@ if (__DEV__) {
681681
describe('createSerializable for unsupported types', () => {
682682
test('does not throw when trying to serialize a Promise', async () => {
683683
const promise = Promise.resolve();
684-
expect(() => {
684+
await expect(() => {
685685
createSerializable(promise);
686686
}).not.toThrow();
687687
});
688688

689689
test('does not throw when trying to serialize a Proxy', async () => {
690690
const proxy = new Proxy({ a: 1 }, { getPrototypeOf: () => null });
691-
expect(() => {
691+
await expect(() => {
692692
createSerializable(proxy);
693693
}).not.toThrow();
694694
});

apps/common-app/src/apps/reanimated/examples/RuntimeTests/tests/memory/createSerializableOnUI.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ describe('Test createSerializableOnUI', () => {
522522
// expect('magicKey' in Object.getPrototypeOf(obj)).toBe(true);
523523
// });
524524

525-
test('createSerializableOnUIInaccessibleObject', async () => {
525+
test('createSerializableOnUIInaccessibleObject', () => {
526526
const clazz = runOnUISync(() => {
527527
'worklet';
528528
class Clazz {
@@ -562,7 +562,7 @@ describe('Test createSerializableOnUI', () => {
562562
});
563563

564564
if (__DEV__) {
565-
test('replaces an unsupported Promise with undefined', async () => {
565+
test('replaces an unsupported Promise with undefined', () => {
566566
const value = runOnUISync(() => {
567567
'worklet';
568568
return Promise.resolve();

0 commit comments

Comments
 (0)