• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cofacts / rumors-line-bot / 6842018647

12 Nov 2023 05:00PM UTC coverage: 89.64% (-0.1%) from 89.786%
6842018647

Pull #371

github

MrOrz
fix(webhook): update initState test snapshots
Pull Request #371: [2] simplify text handlers as well

480 of 573 branches covered (0.0%)

Branch coverage included in aggregate %.

15 of 17 new or added lines in 3 files covered. (88.24%)

2 existing lines in 1 file now uncovered.

965 of 1039 relevant lines covered (92.88%)

24.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/webhook/handlers/defaultState.ts
1
import { Message } from '@line/bot-sdk';
2
import {
3
  ChatbotPostbackHandlerParams,
4
  ChatbotStateHandlerReturnType,
5
} from 'src/types/chatbotState';
6

7
export default function defaultState(
8
  params: ChatbotPostbackHandlerParams
9
): ChatbotStateHandlerReturnType {
UNCOV
10
  const replies: Message[] = [
×
11
    {
12
      type: 'text',
13
      text: '我們看不懂 QQ\n大俠請重新來過。',
14
    },
15
  ];
UNCOV
16
  return { ...params, replies };
×
17
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc