bug: search page fix

This commit is contained in:
2023-06-19 09:55:40 +01:00
parent 12250c5e3d
commit d573d075fe
8 changed files with 54 additions and 58 deletions

View File

@ -3,8 +3,14 @@ import { splitAllByWriteRelays } from "../src/GossipModel"
describe("GossipModel", () => {
it("should not output empty", () => {
const Relays = {
get: (pk?: string) => {
return [];
getFromCache: (pk?: string) => {
if (pk) {
return {
pubkey: pk,
created_at: 0,
relays: []
};
}
}
}
const a = [{