chore: add test
Signed-off-by: ElaineDeMattosSilvaB <elaine.mattos@gmail.com>
This commit is contained in:
@@ -103,7 +103,10 @@ describe('createSpecializedApp', () => {
|
||||
features: [
|
||||
createFrontendPlugin({
|
||||
pluginId: 'test',
|
||||
featureFlags: [{ name: 'a' }, { name: 'b' }],
|
||||
featureFlags: [
|
||||
{ name: 'a' },
|
||||
{ name: 'b', description: 'Feature B description' },
|
||||
],
|
||||
extensions: [
|
||||
createExtension({
|
||||
attachTo: { id: 'root', input: 'app' },
|
||||
@@ -146,6 +149,11 @@ describe('createSpecializedApp', () => {
|
||||
|
||||
expect(screen.getByText('flags:test=a,test=b')).toBeInTheDocument();
|
||||
|
||||
expect(flags).toEqual([
|
||||
{ name: 'a', pluginId: 'test' },
|
||||
{ name: 'b', pluginId: 'test', description: 'Feature B description' },
|
||||
]);
|
||||
|
||||
expect(app.apis).toMatchInlineSnapshot(`
|
||||
ApiResolver {
|
||||
"apis": Map {
|
||||
|
||||
Reference in New Issue
Block a user