diff --git a/example/Tests.tsx b/example/Tests.tsx index f5c99ad0..e7081424 100644 --- a/example/Tests.tsx +++ b/example/Tests.tsx @@ -129,14 +129,16 @@ class Tests extends Component { // global.fs = require("react-native-fs"); // global.path = require("path-browserify"); // global.environment = { - // Default to the host machine when running on Android - // realmBaseUrl: Platform.OS === "android" ? "http://10.0.2.2:9090" : undefined, - // ...context, - // reactNative: Platform.OS, - // android: Platform.OS === "android", - // ios: Platform.OS === "ios", + // Default to the host machine when running on Android + // realmBaseUrl: Platform.OS === "android" ? "http://10.0.2.2:9090" : undefined, + // ...context, + // reactNative: Platform.OS, + // android: Platform.OS === "android", + // ios: Platform.OS === "ios", // }; - global.environment = JSON.parse(Buffer.from(context.c as string, 'hex').toString('utf-8')); + global.environment = JSON.parse( + Buffer.from(context.c as string, 'hex').toString('utf-8'), + ); // Make the tests reinitializable, to allow test running on changes to the "realm" package // Probing the existance of `getModules` as this only exists in debug mode // if ("getModules" in require) { diff --git a/example/tests/utils/clightning-rpc.ts b/example/tests/utils/clightning-rpc.ts index e7472716..f638c9ba 100644 --- a/example/tests/utils/clightning-rpc.ts +++ b/example/tests/utils/clightning-rpc.ts @@ -23,9 +23,9 @@ export default class ClightningRPC { this.port = opts.port; this.headers = { - 'Accept': 'application/json', + Accept: 'application/json', 'Content-type': 'application/json', - 'Rune': this.rune, + Rune: this.rune, }; } @@ -57,7 +57,7 @@ export default class ClightningRPC { this.destroyed = true; } - async _post({ path, body }: {path: string; body?: object}): Promise { + async _post({ path, body }: { path: string; body?: object }): Promise { const jsonBody = JSON.stringify(body || {}); return await this._request({ method: 'POST', path, body: jsonBody }); }