aboutsummaryrefslogtreecommitdiffstats
path: root/tools/feed-switch-seed-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/feed-switch-seed-test.js')
-rw-r--r--tools/feed-switch-seed-test.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/feed-switch-seed-test.js b/tools/feed-switch-seed-test.js
index e747744..1bad161 100644
--- a/tools/feed-switch-seed-test.js
+++ b/tools/feed-switch-seed-test.js
@@ -81,8 +81,9 @@ try {
localStorage.setItem(k + ':feedNotes', JSON.stringify(ns));
localStorage.setItem(k + ':profiles', JSON.stringify({ [a]: { name: 'Alice', t }, [b]: { name: 'Bob', t } }));
const s = JSON.parse(localStorage.getItem(k + ':messages') || '{}');
- s.feeds = [{ id: 'bob', name: 'Bobfeed', follows: false, authors: [b], topics: [], packs: [] },
- { id: 'btc', name: 'Btcfeed', follows: false, authors: [], topics: ['bitcoin'], packs: [] }];
+ // (a feed carries its edit time, as the editor writes it: the feeds sync merge drops one without)
+ s.feeds = [{ id: 'bob', name: 'Bobfeed', follows: false, authors: [b], topics: [], packs: [], at: t },
+ { id: 'btc', name: 'Btcfeed', follows: false, authors: [], topics: ['bitcoin'], packs: [], at: t }];
localStorage.setItem(k + ':messages', JSON.stringify(s));
localStorage.setItem('btc-wallet-feed:' + k, 'following'); // this wallet's last feed
}, [base, PK_A, PK_B, alice]);