fix: prompt remark after qdreader quick submit
This commit is contained in:
@@ -91,6 +91,13 @@ test('manual cookie save falls back to QDHeader embedded UserId before ywguid',
|
||||
assert.equal(JSON.parse(r.store.qdreader_cookie_json)['475700975'], streamCookie);
|
||||
});
|
||||
|
||||
test('quick submit prompts remark after saving cookie', () => {
|
||||
const r = runPlugin({ content: '启点ck ' + cookie, userId: 'user-a', listens: ['主号'] });
|
||||
assert.match(r.replies.join('\n'), /是否为该账号添加备注/);
|
||||
assert.match(r.replies.join('\n'), /备注: 主号/);
|
||||
assert.equal(JSON.parse(r.store.qdreader_remark_json)['12345'], '主号');
|
||||
});
|
||||
|
||||
test('manual sign and cron sign both call sign gateway then qidian checkin', () => {
|
||||
const store = {
|
||||
qdreader_cookie_json: JSON.stringify({ '12345': cookie }),
|
||||
|
||||
Reference in New Issue
Block a user