Commit 18f9223076dfa1bbba1b0c3dcc24fa951ea62e93
wip
Piet Geursen committed on 3/3/2018, 9:16:04 AMParent: 9551d1fdc070fc8003a4b8361771989268da50a2
Files changed
position/schema/position.js | changed |
test/position/sync/isPosition.test.js | changed |
position/schema/position.js | ||
---|---|---|
@@ -18,14 +18,9 @@ | ||
18 | 18 | text: { type: 'string' }, |
19 | 19 | reason: { type: 'string' }, |
20 | 20 | positionDetails: { |
21 | 21 | oneOf: [ |
22 | - // { $ref: '#/definitions/pollDetails/dot'}, | |
23 | - // { $ref: '#/definitions/pollDetails/proposal'}, | |
24 | - // { $ref: '#/definitions/pollDetails/score'}, | |
25 | 22 | { $ref: '#/definitions/positionDetails/chooseOne' } |
26 | - // { $ref: '#/definitions/pollDetails/rsvp'}, | |
27 | - // { $ref: '#/definitions/pollDetails/meeting'}, | |
28 | 23 | ] |
29 | 24 | }, |
30 | 25 | mentions: { |
31 | 26 | oneOf: [ |
test/position/sync/isPosition.test.js | ||
---|---|---|
@@ -2,10 +2,9 @@ | ||
2 | 2 | const ChooseOne = require('../../../position/sync/chooseOne') |
3 | 3 | const isPosition = require('../../../isPosition') |
4 | 4 | |
5 | 5 | // this is for testing the attributes that are required for all polls |
6 | - | |
7 | -test('Position - common requirements', function (t) { | |
6 | +test('position - common requirements', function (t) { | |
8 | 7 | var missingTitle = ChooseOne({ |
9 | 8 | choices: [1, 2, 'three'], |
10 | 9 | closesAt: Date.now() |
11 | 10 | }) |
Built with git-ssb-web