mirror of
https://github.com/davidkaya/aryx.git
synced 2026-08-06 19:58:43 +02:00
refactor: finish Aryx rebrand sweep
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -5,8 +5,8 @@ import type { SidecarCapabilities } from '@shared/contracts/sidecar';
|
||||
mock.module('electron', () => ({
|
||||
app: {
|
||||
isPackaged: false,
|
||||
getAppPath: () => 'C:\\workspace\\personal\\repositories\\eryx',
|
||||
getPath: () => 'C:\\workspace\\personal\\repositories\\eryx\\tests\\fixtures',
|
||||
getAppPath: () => 'C:\\workspace\\personal\\repositories\\aryx',
|
||||
getPath: () => 'C:\\workspace\\personal\\repositories\\aryx\\tests\\fixtures',
|
||||
},
|
||||
dialog: {
|
||||
showOpenDialog: async () => ({ canceled: true, filePaths: [] }),
|
||||
@@ -24,7 +24,7 @@ mock.module('keytar', () => ({
|
||||
},
|
||||
}));
|
||||
|
||||
const { EryxAppService } = await import('@main/EryxAppService');
|
||||
const { AryxAppService } = await import('@main/AryxAppService');
|
||||
|
||||
const SIDECAR_STOPPED_BEFORE_COMPLETION_MESSAGE =
|
||||
'The .NET sidecar was stopped before the command completed.';
|
||||
@@ -49,7 +49,7 @@ const CAPABILITIES_FIXTURE: SidecarCapabilities = {
|
||||
};
|
||||
|
||||
function setSidecar(
|
||||
service: InstanceType<typeof EryxAppService>,
|
||||
service: InstanceType<typeof AryxAppService>,
|
||||
describeCapabilities: () => Promise<SidecarCapabilities>,
|
||||
): void {
|
||||
(
|
||||
@@ -74,9 +74,9 @@ function createDeferred<T>() {
|
||||
return { promise, resolve };
|
||||
}
|
||||
|
||||
describe('EryxAppService sidecar capabilities', () => {
|
||||
describe('AryxAppService sidecar capabilities', () => {
|
||||
test('retries describe-capabilities after an intentional sidecar stop', async () => {
|
||||
const service = new EryxAppService();
|
||||
const service = new AryxAppService();
|
||||
let attempts = 0;
|
||||
|
||||
setSidecar(service, async () => {
|
||||
@@ -93,7 +93,7 @@ describe('EryxAppService sidecar capabilities', () => {
|
||||
});
|
||||
|
||||
test('coalesces concurrent capability requests while the cache is empty', async () => {
|
||||
const service = new EryxAppService();
|
||||
const service = new AryxAppService();
|
||||
const deferred = createDeferred<SidecarCapabilities>();
|
||||
let calls = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user