Merge pull request #225 from PR0M3TH3AN/codex/update-view-counter-tests-and-assertions

Update view counter test expectations
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2025-10-01 18:22:40 -04:00
commit 95b2f23d66
1 file changed
+6 -2
+6 -2
View File
@@ -577,7 +577,11 @@ async function testRecordVideoViewEmitsJsonPayload() {
};
nostrClient.pubkey = "";
nostrClient.updateWatchHistoryList = async () => ({ ok: true });
nostrClient.updateWatchHistoryList = async () => {
throw new Error(
"recordVideoView should not invoke updateWatchHistoryList during view publishes"
);
};
try {
const result = await nostrClient.recordVideoView(pointer, {
@@ -614,7 +618,7 @@ async function testRecordVideoViewEmitsJsonPayload() {
);
assert.equal(
result.view.event.content,
result.event.content,
emittedEvent.content,
"serialized payload should persist on the emitted event"
);