We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fb1ac0 commit ae229aeCopy full SHA for ae229ae
packages/builders/__tests__/messages/poll.test.ts
@@ -110,6 +110,12 @@ describe('Poll', () => {
110
});
111
112
describe('Poll answers', () => {
113
+ test('GIVEN a poll without answers THEN throws error', () => {
114
+ const poll = new PollBuilder(dummyData);
115
+
116
+ expect(() => poll.toJSON()).toThrowError();
117
+ });
118
119
test('GIVEN a poll with pre-defined answer THEN returns valid toJSON data', () => {
120
const poll = new PollBuilder({
121
...dummyData,
0 commit comments