Files: 8818456f68cdf8d623639cc4bc69b81a61f90869 / test / schema / poll.js
383 bytesRaw
1 | var test = require('tape') |
2 | var {poll, isPoll, response} = require('../..') |
3 | |
4 | test('test', function (t) { |
5 | t.true(true) |
6 | t.end() |
7 | }) |
8 | |
9 | test('create and validate an invalid chooseOne poll', function (t) { |
10 | var pollOptions = {type: 'chooseOne'} |
11 | var myPoll = poll({text: 'how many food', mentions: null, recps: null, channel: null, pollOptions}) |
12 | t.false(isPoll(myPoll)) |
13 | t.end() |
14 | }) |
15 |
Built with git-ssb-web