@flighthq/host-capacitor 0.5.1-next.903.f434bc2 → 0.5.1-next.905.5fbf787
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +13 -13
- package/src/capacitorApp.test.ts +16 -1
- package/src/capacitorClipboard.test.ts +6 -1
- package/src/capacitorConnectivity.test.ts +6 -1
- package/src/capacitorDevice.test.ts +6 -1
- package/src/capacitorDialog.test.ts +17 -1
- package/src/capacitorFileSystem.test.ts +6 -1
- package/src/capacitorGeolocation.test.ts +6 -1
- package/src/capacitorHaptics.test.ts +6 -1
- package/src/capacitorKeyboard.test.ts +48 -0
- package/src/capacitorNotification.test.ts +9 -1
- package/src/capacitorProtocol.test.ts +6 -1
- package/src/capacitorRegister.test.ts +6 -1
- package/src/capacitorShare.test.ts +6 -1
- package/src/capacitorStatusBar.test.ts +6 -1
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/host-capacitor`. The
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/host-capacitor@0.5.1-next.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/host-capacitor@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/host-capacitor)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/5fbf7874064c384307542d68b4dcb6a895ff0dcf/LICENSE.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/host-capacitor",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.905.5fbf787",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/app": "0.5.1-next.
|
|
42
|
-
"@flighthq/clipboard": "0.5.1-next.
|
|
43
|
-
"@flighthq/device": "0.5.1-next.
|
|
44
|
-
"@flighthq/dialog": "0.5.1-next.
|
|
45
|
-
"@flighthq/entity": "0.5.1-next.
|
|
46
|
-
"@flighthq/filesystem": "0.5.1-next.
|
|
47
|
-
"@flighthq/geolocation": "0.5.1-next.
|
|
48
|
-
"@flighthq/haptics": "0.5.1-next.
|
|
49
|
-
"@flighthq/notification": "0.5.1-next.
|
|
50
|
-
"@flighthq/share": "0.5.1-next.
|
|
51
|
-
"@flighthq/statusbar": "0.5.1-next.
|
|
52
|
-
"@flighthq/types": "0.5.1-next.
|
|
41
|
+
"@flighthq/app": "0.5.1-next.905.5fbf787",
|
|
42
|
+
"@flighthq/clipboard": "0.5.1-next.905.5fbf787",
|
|
43
|
+
"@flighthq/device": "0.5.1-next.905.5fbf787",
|
|
44
|
+
"@flighthq/dialog": "0.5.1-next.905.5fbf787",
|
|
45
|
+
"@flighthq/entity": "0.5.1-next.905.5fbf787",
|
|
46
|
+
"@flighthq/filesystem": "0.5.1-next.905.5fbf787",
|
|
47
|
+
"@flighthq/geolocation": "0.5.1-next.905.5fbf787",
|
|
48
|
+
"@flighthq/haptics": "0.5.1-next.905.5fbf787",
|
|
49
|
+
"@flighthq/notification": "0.5.1-next.905.5fbf787",
|
|
50
|
+
"@flighthq/share": "0.5.1-next.905.5fbf787",
|
|
51
|
+
"@flighthq/statusbar": "0.5.1-next.905.5fbf787",
|
|
52
|
+
"@flighthq/types": "0.5.1-next.905.5fbf787"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"typescript": "^5.3.0"
|
package/src/capacitorApp.test.ts
CHANGED
|
@@ -2,7 +2,11 @@ import type { CapacitorApi } from '@flighthq/types/contract';
|
|
|
2
2
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
3
|
import { describe, expect, it } from 'vitest';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
createCapacitorAppCapabilities,
|
|
7
|
+
initializeCapacitorAndroidAppCapabilities,
|
|
8
|
+
initializeCapacitorCommonAppCapabilities,
|
|
9
|
+
} from './capacitorApp';
|
|
6
10
|
|
|
7
11
|
const flush = async () => {
|
|
8
12
|
await Promise.resolve();
|
|
@@ -74,3 +78,14 @@ describe('createCapacitorAppCapabilities', () => {
|
|
|
74
78
|
expect(calls).toEqual(['remove:appStateChange']);
|
|
75
79
|
});
|
|
76
80
|
});
|
|
81
|
+
describe('initializeCapacitorAndroidAppCapabilities', () => {
|
|
82
|
+
it('is the construction initializer of createCapacitorAndroidAppCapabilities', () => {
|
|
83
|
+
expect(typeof initializeCapacitorAndroidAppCapabilities).toBe('function');
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
describe('initializeCapacitorCommonAppCapabilities', () => {
|
|
88
|
+
it('is the construction initializer of createCapacitorCommonAppCapabilities', () => {
|
|
89
|
+
expect(typeof initializeCapacitorCommonAppCapabilities).toBe('function');
|
|
90
|
+
});
|
|
91
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CapacitorApi } from '@flighthq/types/contract';
|
|
2
2
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
3
|
|
|
4
|
-
import { createCapacitorClipboardBackend } from './capacitorClipboard';
|
|
4
|
+
import { createCapacitorClipboardBackend, initializeCapacitorClipboardBackend } from './capacitorClipboard';
|
|
5
5
|
|
|
6
6
|
function fakeCapacitor() {
|
|
7
7
|
const store = { value: '', type: 'text/plain' };
|
|
@@ -62,3 +62,8 @@ describe('createCapacitorClipboardBackend', () => {
|
|
|
62
62
|
expect(await backend.hasText()).toBe(false);
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
|
+
describe('initializeCapacitorClipboardBackend', () => {
|
|
66
|
+
it('is the construction initializer of createCapacitorClipboardBackend', () => {
|
|
67
|
+
expect(typeof initializeCapacitorClipboardBackend).toBe('function');
|
|
68
|
+
});
|
|
69
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CapacitorApi, CapacitorConnectionStatus, ConnectivityStatus } from '@flighthq/types/contract';
|
|
2
2
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
3
|
|
|
4
|
-
import { createCapacitorConnectivityBackend } from './capacitorConnectivity';
|
|
4
|
+
import { createCapacitorConnectivityBackend, initializeCapacitorConnectivityBackend } from './capacitorConnectivity';
|
|
5
5
|
|
|
6
6
|
async function flush(): Promise<void> {
|
|
7
7
|
await Promise.resolve();
|
|
@@ -131,3 +131,8 @@ describe('createCapacitorConnectivityBackend', () => {
|
|
|
131
131
|
expect(fake.removals()).toBe(1);
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
|
+
describe('initializeCapacitorConnectivityBackend', () => {
|
|
135
|
+
it('is the construction initializer of createCapacitorConnectivityBackend', () => {
|
|
136
|
+
expect(typeof initializeCapacitorConnectivityBackend).toBe('function');
|
|
137
|
+
});
|
|
138
|
+
});
|
|
@@ -7,7 +7,7 @@ import type {
|
|
|
7
7
|
} from '@flighthq/types/contract';
|
|
8
8
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
9
9
|
|
|
10
|
-
import { createCapacitorDeviceBackend } from './capacitorDevice';
|
|
10
|
+
import { createCapacitorDeviceBackend, initializeCapacitorDeviceBackend } from './capacitorDevice';
|
|
11
11
|
|
|
12
12
|
const flush = async () => {
|
|
13
13
|
await Promise.resolve();
|
|
@@ -114,3 +114,8 @@ describe('createCapacitorDeviceBackend', () => {
|
|
|
114
114
|
expect(backend.getSafeAreaInsets(insets)).toMatchObject({ top: 0, right: 0, bottom: 0, left: 0 });
|
|
115
115
|
});
|
|
116
116
|
});
|
|
117
|
+
describe('initializeCapacitorDeviceBackend', () => {
|
|
118
|
+
it('is the construction initializer of createCapacitorDeviceBackend', () => {
|
|
119
|
+
expect(typeof initializeCapacitorDeviceBackend).toBe('function');
|
|
120
|
+
});
|
|
121
|
+
});
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { CapacitorApi } from '@flighthq/types/contract';
|
|
2
2
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
createCapacitorMessageDialogBackend,
|
|
6
|
+
createCapacitorPromptDialogBackend,
|
|
7
|
+
initializeCapacitorMessageDialogBackend,
|
|
8
|
+
initializeCapacitorPromptDialogBackend,
|
|
9
|
+
} from './capacitorDialog';
|
|
5
10
|
|
|
6
11
|
function fakeCapacitor(promptResult = { value: 'typed', cancelled: false }) {
|
|
7
12
|
const calls: string[] = [];
|
|
@@ -66,3 +71,14 @@ describe('createCapacitorPromptDialogBackend', () => {
|
|
|
66
71
|
expect(calls).toEqual([]);
|
|
67
72
|
});
|
|
68
73
|
});
|
|
74
|
+
describe('initializeCapacitorMessageDialogBackend', () => {
|
|
75
|
+
it('is the construction initializer of createCapacitorMessageDialogBackend', () => {
|
|
76
|
+
expect(typeof initializeCapacitorMessageDialogBackend).toBe('function');
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
describe('initializeCapacitorPromptDialogBackend', () => {
|
|
81
|
+
it('is the construction initializer of createCapacitorPromptDialogBackend', () => {
|
|
82
|
+
expect(typeof initializeCapacitorPromptDialogBackend).toBe('function');
|
|
83
|
+
});
|
|
84
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CapacitorApi } from '@flighthq/types/contract';
|
|
2
2
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
3
|
|
|
4
|
-
import { createCapacitorFileSystemBackend } from './capacitorFileSystem';
|
|
4
|
+
import { createCapacitorFileSystemBackend, initializeCapacitorFileSystemBackend } from './capacitorFileSystem';
|
|
5
5
|
|
|
6
6
|
function fakeCapacitor() {
|
|
7
7
|
const files = new Map<string, { data: string; type: string }>();
|
|
@@ -135,3 +135,8 @@ describe('createCapacitorFileSystemBackend', () => {
|
|
|
135
135
|
);
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
|
+
describe('initializeCapacitorFileSystemBackend', () => {
|
|
139
|
+
it('is the construction initializer of createCapacitorFileSystemBackend', () => {
|
|
140
|
+
expect(typeof initializeCapacitorFileSystemBackend).toBe('function');
|
|
141
|
+
});
|
|
142
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CapacitorApi, CapacitorPosition } from '@flighthq/types/contract';
|
|
2
2
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
3
|
|
|
4
|
-
import { createCapacitorGeolocationBackend } from './capacitorGeolocation';
|
|
4
|
+
import { createCapacitorGeolocationBackend, initializeCapacitorGeolocationBackend } from './capacitorGeolocation';
|
|
5
5
|
|
|
6
6
|
const flush = async () => {
|
|
7
7
|
await Promise.resolve();
|
|
@@ -78,3 +78,8 @@ describe('createCapacitorGeolocationBackend', () => {
|
|
|
78
78
|
expect(cleared).toContain('watch-abc');
|
|
79
79
|
});
|
|
80
80
|
});
|
|
81
|
+
describe('initializeCapacitorGeolocationBackend', () => {
|
|
82
|
+
it('is the construction initializer of createCapacitorGeolocationBackend', () => {
|
|
83
|
+
expect(typeof initializeCapacitorGeolocationBackend).toBe('function');
|
|
84
|
+
});
|
|
85
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HapticsCapabilities, CapacitorApi } from '@flighthq/types/contract';
|
|
2
2
|
|
|
3
|
-
import { createCapacitorHapticsBackend } from './capacitorHaptics';
|
|
3
|
+
import { createCapacitorHapticsBackend, initializeCapacitorHapticsBackend } from './capacitorHaptics';
|
|
4
4
|
|
|
5
5
|
function fakeCapacitor() {
|
|
6
6
|
const calls: Array<{ method: string; arg?: unknown }> = [];
|
|
@@ -72,3 +72,8 @@ describe('createCapacitorHapticsBackend', () => {
|
|
|
72
72
|
expect(backend.isSupported()).toBe(true);
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
|
+
describe('initializeCapacitorHapticsBackend', () => {
|
|
76
|
+
it('is the construction initializer of createCapacitorHapticsBackend', () => {
|
|
77
|
+
expect(typeof initializeCapacitorHapticsBackend).toBe('function');
|
|
78
|
+
});
|
|
79
|
+
});
|
|
@@ -9,6 +9,13 @@ import {
|
|
|
9
9
|
createCapacitorSoftKeyboardScrollAssistBackend,
|
|
10
10
|
createCapacitorSoftKeyboardStyleBackend,
|
|
11
11
|
createCapacitorSoftKeyboardVisibilityBackend,
|
|
12
|
+
initializeCapacitorSoftKeyboardAccessoryBarBackend,
|
|
13
|
+
initializeCapacitorSoftKeyboardChangeBackend,
|
|
14
|
+
initializeCapacitorSoftKeyboardInfoBackend,
|
|
15
|
+
initializeCapacitorSoftKeyboardResizeModeWriteBackend,
|
|
16
|
+
initializeCapacitorSoftKeyboardScrollAssistBackend,
|
|
17
|
+
initializeCapacitorSoftKeyboardStyleBackend,
|
|
18
|
+
initializeCapacitorSoftKeyboardVisibilityBackend,
|
|
12
19
|
} from './capacitorKeyboard';
|
|
13
20
|
|
|
14
21
|
function fakeCapacitor() {
|
|
@@ -237,3 +244,44 @@ describe('createCapacitorSoftKeyboardVisibilityBackend', () => {
|
|
|
237
244
|
expect(await createCapacitorSoftKeyboardVisibilityBackend(failCapacitor).hide()).toBe('operation-failed');
|
|
238
245
|
});
|
|
239
246
|
});
|
|
247
|
+
describe('initializeCapacitorSoftKeyboardAccessoryBarBackend', () => {
|
|
248
|
+
it('is the construction initializer of createCapacitorSoftKeyboardAccessoryBarBackend', () => {
|
|
249
|
+
expect(typeof initializeCapacitorSoftKeyboardAccessoryBarBackend).toBe('function');
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
describe('initializeCapacitorSoftKeyboardChangeBackend', () => {
|
|
254
|
+
it('is the construction initializer of createCapacitorSoftKeyboardChangeBackend', () => {
|
|
255
|
+
expect(typeof initializeCapacitorSoftKeyboardChangeBackend).toBe('function');
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
|
|
259
|
+
describe('initializeCapacitorSoftKeyboardInfoBackend', () => {
|
|
260
|
+
it('is the construction initializer of createCapacitorSoftKeyboardInfoBackend', () => {
|
|
261
|
+
expect(typeof initializeCapacitorSoftKeyboardInfoBackend).toBe('function');
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
describe('initializeCapacitorSoftKeyboardResizeModeWriteBackend', () => {
|
|
266
|
+
it('is the construction initializer of createCapacitorSoftKeyboardResizeModeWriteBackend', () => {
|
|
267
|
+
expect(typeof initializeCapacitorSoftKeyboardResizeModeWriteBackend).toBe('function');
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
describe('initializeCapacitorSoftKeyboardScrollAssistBackend', () => {
|
|
272
|
+
it('is the construction initializer of createCapacitorSoftKeyboardScrollAssistBackend', () => {
|
|
273
|
+
expect(typeof initializeCapacitorSoftKeyboardScrollAssistBackend).toBe('function');
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
describe('initializeCapacitorSoftKeyboardStyleBackend', () => {
|
|
278
|
+
it('is the construction initializer of createCapacitorSoftKeyboardStyleBackend', () => {
|
|
279
|
+
expect(typeof initializeCapacitorSoftKeyboardStyleBackend).toBe('function');
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
describe('initializeCapacitorSoftKeyboardVisibilityBackend', () => {
|
|
284
|
+
it('is the construction initializer of createCapacitorSoftKeyboardVisibilityBackend', () => {
|
|
285
|
+
expect(typeof initializeCapacitorSoftKeyboardVisibilityBackend).toBe('function');
|
|
286
|
+
});
|
|
287
|
+
});
|
|
@@ -6,7 +6,10 @@ import type {
|
|
|
6
6
|
CapacitorLocalNotificationSchema,
|
|
7
7
|
} from '@flighthq/types/contract';
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
createCapacitorNotificationCapabilities,
|
|
11
|
+
initializeCapacitorNotificationCapabilities,
|
|
12
|
+
} from './capacitorNotification';
|
|
10
13
|
|
|
11
14
|
function fakeCapacitor(display = 'granted') {
|
|
12
15
|
const scheduled: CapacitorLocalNotificationSchema[] = [];
|
|
@@ -138,3 +141,8 @@ describe('createCapacitorNotificationCapabilities', () => {
|
|
|
138
141
|
expect(seen).toHaveLength(2);
|
|
139
142
|
});
|
|
140
143
|
});
|
|
144
|
+
describe('initializeCapacitorNotificationCapabilities', () => {
|
|
145
|
+
it('is the construction initializer of createCapacitorNotificationCapabilities', () => {
|
|
146
|
+
expect(typeof initializeCapacitorNotificationCapabilities).toBe('function');
|
|
147
|
+
});
|
|
148
|
+
});
|
|
@@ -2,7 +2,7 @@ import type { CapacitorApi } from '@flighthq/types/contract';
|
|
|
2
2
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
3
|
import { describe, expect, it } from 'vitest';
|
|
4
4
|
|
|
5
|
-
import { createCapacitorProtocolCapabilities } from './capacitorProtocol';
|
|
5
|
+
import { createCapacitorProtocolCapabilities, initializeCapacitorProtocolCapabilities } from './capacitorProtocol';
|
|
6
6
|
|
|
7
7
|
const flush = async () => {
|
|
8
8
|
await Promise.resolve();
|
|
@@ -39,3 +39,8 @@ describe('createCapacitorProtocolCapabilities', () => {
|
|
|
39
39
|
expect(removed).toBe(1);
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
|
+
describe('initializeCapacitorProtocolCapabilities', () => {
|
|
43
|
+
it('is the construction initializer of createCapacitorProtocolCapabilities', () => {
|
|
44
|
+
expect(typeof initializeCapacitorProtocolCapabilities).toBe('function');
|
|
45
|
+
});
|
|
46
|
+
});
|
|
@@ -2,7 +2,7 @@ import { readClipboardText } from '@flighthq/clipboard/contract';
|
|
|
2
2
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
3
|
import type { CapacitorApi } from '@flighthq/types/contract';
|
|
4
4
|
|
|
5
|
-
import { capacitorHost, registerCapacitorBackends } from './capacitorRegister';
|
|
5
|
+
import { capacitorHost, initializeCapacitorHost, registerCapacitorBackends } from './capacitorRegister';
|
|
6
6
|
|
|
7
7
|
// A fake Capacitor API broad enough that every createCapacitor*Backend constructs without touching
|
|
8
8
|
// missing members. Backends close over `capacitor` and only call in when their methods run (plus the
|
|
@@ -114,6 +114,11 @@ describe('capacitorHost', () => {
|
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
+
describe('initializeCapacitorHost', () => {
|
|
118
|
+
it('is the construction initializer of createCapacitorHost', () => {
|
|
119
|
+
expect(typeof initializeCapacitorHost).toBe('function');
|
|
120
|
+
});
|
|
121
|
+
});
|
|
117
122
|
describe('registerCapacitorBackends', () => {
|
|
118
123
|
it('installs a backend for each covered capability', () => {
|
|
119
124
|
const host = registerCapacitorBackends(fakeCapacitor(), 'ios');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CapacitorApi, ShareContentBackend } from '@flighthq/types/contract';
|
|
2
2
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
3
|
|
|
4
|
-
import { createCapacitorShareContentBackend } from './capacitorShare';
|
|
4
|
+
import { createCapacitorShareContentBackend, initializeCapacitorShareContentBackend } from './capacitorShare';
|
|
5
5
|
|
|
6
6
|
function fakeCapacitor(shareImpl?: () => Promise<{ activityType?: string }>) {
|
|
7
7
|
const shared: Array<{ dialogTitle?: string; title?: string; text?: string; url?: string }> = [];
|
|
@@ -67,3 +67,8 @@ describe('createCapacitorShareContentBackend', () => {
|
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
|
+
describe('initializeCapacitorShareContentBackend', () => {
|
|
71
|
+
it('is the construction initializer of createCapacitorShareContentBackend', () => {
|
|
72
|
+
expect(typeof initializeCapacitorShareContentBackend).toBe('function');
|
|
73
|
+
});
|
|
74
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StatusBarInfo, CapacitorApi } from '@flighthq/types/contract';
|
|
2
2
|
import { EntityRuntimeKey } from '@flighthq/types/contract';
|
|
3
3
|
|
|
4
|
-
import { createCapacitorStatusBarBackend } from './capacitorStatusBar';
|
|
4
|
+
import { createCapacitorStatusBarBackend, initializeCapacitorStatusBarBackend } from './capacitorStatusBar';
|
|
5
5
|
|
|
6
6
|
const flush = async () => {
|
|
7
7
|
await Promise.resolve();
|
|
@@ -75,3 +75,8 @@ describe('createCapacitorStatusBarBackend', () => {
|
|
|
75
75
|
expect(info.height).toBe(-1);
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
|
+
describe('initializeCapacitorStatusBarBackend', () => {
|
|
79
|
+
it('is the construction initializer of createCapacitorStatusBarBackend', () => {
|
|
80
|
+
expect(typeof initializeCapacitorStatusBarBackend).toBe('function');
|
|
81
|
+
});
|
|
82
|
+
});
|