mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
chore(deps): upgrade all dependencies, toolchains and images (#2825)
This commit is contained in:
@@ -5,8 +5,8 @@ import {
|
||||
GatewayRolloutConfigPublisher,
|
||||
} from '@app/api/instance/GatewayRolloutConfigPublisher';
|
||||
import type {GatewayRolloutConfig} from '@fluxer/schema/src/domains/admin/GatewayRolloutSchemas';
|
||||
import type {NatsConnection} from '@nats-io/transport-node';
|
||||
import type {INatsConnectionManager} from '@pkgs/nats/src/INatsConnectionManager';
|
||||
import {type NatsConnection, StringCodec} from 'nats';
|
||||
import {describe, expect, it} from 'vitest';
|
||||
|
||||
interface FakePublish {
|
||||
@@ -15,7 +15,6 @@ interface FakePublish {
|
||||
}
|
||||
|
||||
class FakeNatsConnectionManager implements INatsConnectionManager {
|
||||
private readonly codec = StringCodec();
|
||||
private closed = true;
|
||||
readonly publishes: Array<FakePublish> = [];
|
||||
connectCalls = 0;
|
||||
@@ -34,7 +33,7 @@ class FakeNatsConnectionManager implements INatsConnectionManager {
|
||||
publish: (subject: string, data: Uint8Array) => {
|
||||
this.publishes.push({
|
||||
subject,
|
||||
body: JSON.parse(this.codec.decode(data)) as Record<string, unknown>,
|
||||
body: JSON.parse(new TextDecoder().decode(data)) as Record<string, unknown>,
|
||||
});
|
||||
},
|
||||
flush: async () => {
|
||||
|
||||
Reference in New Issue
Block a user