frontend-app-api: Update tests

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2023-09-12 10:34:16 +02:00
parent 9404609953
commit 5019f29a17
2 changed files with 8 additions and 8 deletions
@@ -31,7 +31,7 @@ describe('createApiExtension', () => {
});
expect(extension).toEqual({
$$type: 'extension',
$$type: '@backstage/Extension',
id: 'apis.test',
at: 'core/apis',
disabled: false,
@@ -39,7 +39,7 @@ describe('createApiExtension', () => {
inputs: {},
output: {
api: expect.objectContaining({
$$type: 'extension-data',
$$type: '@backstage/ExtensionDataRef',
id: 'core.api.factory',
config: {},
}),
@@ -63,9 +63,9 @@ describe('createApiExtension', () => {
});
},
});
// boo
expect(extension).toEqual({
$$type: 'extension',
$$type: '@backstage/Extension',
id: 'apis.test',
at: 'core/apis',
disabled: false,
@@ -73,7 +73,7 @@ describe('createApiExtension', () => {
inputs: {},
output: {
api: expect.objectContaining({
$$type: 'extension-data',
$$type: '@backstage/ExtensionDataRef',
id: 'core.api.factory',
config: {},
}),
@@ -33,7 +33,7 @@ describe('createPageExtension', () => {
component: async () => <div />,
}),
).toEqual({
$$type: 'extension',
$$type: '@backstage/Extension',
id: 'test',
at: 'core.routes/routes',
configSchema: expect.anything(),
@@ -61,7 +61,7 @@ describe('createPageExtension', () => {
component: async () => <div />,
}),
).toEqual({
$$type: 'extension',
$$type: '@backstage/Extension',
id: 'test',
at: 'other/place',
configSchema: expect.anything(),
@@ -86,7 +86,7 @@ describe('createPageExtension', () => {
component: async () => <div />,
}),
).toEqual({
$$type: 'extension',
$$type: '@backstage/Extension',
id: 'test',
at: 'core.routes/routes',
configSchema: expect.anything(),