-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(in-app-messaging): ensure modular API are exported properly (#7936)
- Loading branch information
1 parent
4460536
commit 3223792
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
packages/in-app-messaging/__tests__/inappmessaging.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { describe, expect, it } from '@jest/globals'; | ||
|
||
import { | ||
firebase, | ||
getInAppMessaging, | ||
isMessagesDisplaySuppressed, | ||
setMessagesDisplaySuppressed, | ||
isAutomaticDataCollectionEnabled, | ||
setAutomaticDataCollectionEnabled, | ||
triggerEvent, | ||
} from '../lib'; | ||
|
||
describe('in-app-messaging', function () { | ||
describe('namespace', function () { | ||
it('accessible from firebase.app()', function () { | ||
const app = firebase.app(); | ||
expect(app.inAppMessaging).toBeDefined(); | ||
}); | ||
}); | ||
|
||
describe('modular', function () { | ||
it('`getInAppMessaging` function is properly exposed to end user', function () { | ||
expect(getInAppMessaging).toBeDefined(); | ||
}); | ||
|
||
it('`isMessagesDisplaySuppressed` function is properly exposed to end user', function () { | ||
expect(isMessagesDisplaySuppressed).toBeDefined(); | ||
}); | ||
|
||
it('`setMessagesDisplaySuppressed` function is properly exposed to end user', function () { | ||
expect(setMessagesDisplaySuppressed).toBeDefined(); | ||
}); | ||
|
||
it('`isAutomaticDataCollectionEnabled` function is properly exposed to end user', function () { | ||
expect(isAutomaticDataCollectionEnabled).toBeDefined(); | ||
}); | ||
|
||
it('`setAutomaticDataCollectionEnabled` function is properly exposed to end user', function () { | ||
expect(setAutomaticDataCollectionEnabled).toBeDefined(); | ||
}); | ||
|
||
it('`triggerEvent` function is properly exposed to end user', function () { | ||
expect(triggerEvent).toBeDefined(); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters