git ssb

0+

Piet / ssb-loomio



Commit 7610206161f8ec304e4fb592fc4c9861f6990e80

lint

Piet Geursen committed on 3/7/2018, 1:46:04 AM
Parent: c9b6e524fc9ae9c6dec40739d562b8bfd84fbc3d

Files changed

test/position/sync/chooseOneResults.test.jschanged
test/position/sync/chooseOneResults.test.jsView
@@ -37,10 +37,9 @@
3737 t.deepEqual(actual[2], [sallyId], 'correct voters for choice 2')
3838 t.end()
3939 })
4040
41-test('ChooseOneResults - a position stated for an invalid choice index is not counted', function(t) {
42-
41+test('ChooseOneResults - a position stated for an invalid choice index is not counted', function (t) {
4342 const positions = [
4443 { value: { content: Position(ChooseOne({choice: 3, poll})), author: pietId } }
4544 ]
4645
@@ -48,9 +47,9 @@
4847 t.false(actual[3], 'invalid vote is not counted')
4948 t.end()
5049 })
5150
52-test('ChooseOneResults - a position stated for an invalid choice index is included in the errors object', function(t) {
51+test('ChooseOneResults - a position stated for an invalid choice index is included in the errors object', function (t) {
5352 const positions = [
5453 { value: { content: Position(ChooseOne({choice: 3, poll})), author: pietId } }
5554 ]
5655
@@ -58,9 +57,9 @@
5857 t.deepEqual(actual.errors.invalidPositions[0], positions[0], 'invalid vote is on error object')
5958 t.end()
6059 })
6160
62-test('ChooseOneResults - A position stated before the closing time of the poll is counted', function(t) {
61+test('ChooseOneResults - A position stated before the closing time of the poll is counted', function (t) {
6362 const positions = [
6463 { value: { content: Position(ChooseOne({choice: 0, poll})), author: pietId, timestamp: now - 1} }
6564 ]
6665
@@ -68,9 +67,9 @@
6867 t.true(actual[0], 'valid vote is counted')
6968 t.end()
7069 })
7170
72-test('ChooseOneResults - A position stated after the closing time of the poll is not counted', function(t) {
71+test('ChooseOneResults - A position stated after the closing time of the poll is not counted', function (t) {
7372 const positions = [
7473 { value: { content: Position(ChooseOne({choice: 0, poll})), author: pietId, timestamp: now + 1} }
7574 ]
7675
@@ -78,9 +77,9 @@
7877 t.false(actual[0], 'invalid vote is not counted')
7978 t.end()
8079 })
8180
82-test('ChooseOneResults - A position stated after the closing time of the poll is included in the error object', function(t) {
81+test('ChooseOneResults - A position stated after the closing time of the poll is included in the error object', function (t) {
8382 const positions = [
8483 { value: { content: Position(ChooseOne({choice: 0, poll})), author: pietId, timestamp: now + 1} }
8584 ]
8685

Built with git-ssb-web