frontend-app-api: Update tests
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user