fix: Major bug cleanup pass 1
All checks were successful
Queue Release Build / prepare (push) Successful in 19s
Deploy Web Apps / deploy (push) Successful in 8m12s
Queue Release Build / build-windows (push) Successful in 27m44s
Queue Release Build / build-linux (push) Successful in 48m1s
Queue Release Build / build-android (push) Successful in 22m7s
Queue Release Build / finalize (push) Successful in 2m42s
All checks were successful
Queue Release Build / prepare (push) Successful in 19s
Deploy Web Apps / deploy (push) Successful in 8m12s
Queue Release Build / build-windows (push) Successful in 27m44s
Queue Release Build / build-linux (push) Successful in 48m1s
Queue Release Build / build-android (push) Successful in 22m7s
Queue Release Build / finalize (push) Successful in 2m42s
This commit is contained in:
@@ -238,6 +238,22 @@ describe('PluginStoreService', () => {
|
||||
url: plugin.readmeUrl
|
||||
});
|
||||
});
|
||||
|
||||
it('allows localhost HTTP plugin source URLs for local dev and E2E', async () => {
|
||||
const localSourceUrl = 'http://localhost:4200/plugins/e2e-plugin-source.json';
|
||||
|
||||
mockFetchResponses(fetchMock, {
|
||||
[localSourceUrl]: jsonResponse({
|
||||
title: 'Local E2E Source',
|
||||
plugins: []
|
||||
})
|
||||
});
|
||||
|
||||
const service = createService(registerLocalManifest, unregister);
|
||||
|
||||
await expect(service.addSourceUrl(localSourceUrl)).resolves.toBeUndefined();
|
||||
expect(service.sourceUrls()).toContain(localSourceUrl);
|
||||
});
|
||||
});
|
||||
|
||||
function mockFetchResponses(fetchMock: ReturnType<typeof vi.fn>, responses: Record<string, Response>): void {
|
||||
@@ -312,8 +328,8 @@ function createService(
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
const service = injector.get(PluginStoreService);
|
||||
|
||||
injector.get(AppI18nService).initialize();
|
||||
|
||||
return service;
|
||||
|
||||
Reference in New Issue
Block a user