Commit 7610206161f8ec304e4fb592fc4c9861f6990e80
lint
Piet Geursen committed on 3/7/2018, 1:46:04 AMParent: c9b6e524fc9ae9c6dec40739d562b8bfd84fbc3d
Files changed
test/position/sync/chooseOneResults.test.js | changed |
test/position/sync/chooseOneResults.test.js | ||
---|---|---|
@@ -37,10 +37,9 @@ | ||
37 | 37 | t.deepEqual(actual[2], [sallyId], 'correct voters for choice 2') |
38 | 38 | t.end() |
39 | 39 | }) |
40 | 40 | |
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) { | |
43 | 42 | const positions = [ |
44 | 43 | { value: { content: Position(ChooseOne({choice: 3, poll})), author: pietId } } |
45 | 44 | ] |
46 | 45 | |
@@ -48,9 +47,9 @@ | ||
48 | 47 | t.false(actual[3], 'invalid vote is not counted') |
49 | 48 | t.end() |
50 | 49 | }) |
51 | 50 | |
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) { | |
53 | 52 | const positions = [ |
54 | 53 | { value: { content: Position(ChooseOne({choice: 3, poll})), author: pietId } } |
55 | 54 | ] |
56 | 55 | |
@@ -58,9 +57,9 @@ | ||
58 | 57 | t.deepEqual(actual.errors.invalidPositions[0], positions[0], 'invalid vote is on error object') |
59 | 58 | t.end() |
60 | 59 | }) |
61 | 60 | |
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) { | |
63 | 62 | const positions = [ |
64 | 63 | { value: { content: Position(ChooseOne({choice: 0, poll})), author: pietId, timestamp: now - 1} } |
65 | 64 | ] |
66 | 65 | |
@@ -68,9 +67,9 @@ | ||
68 | 67 | t.true(actual[0], 'valid vote is counted') |
69 | 68 | t.end() |
70 | 69 | }) |
71 | 70 | |
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) { | |
73 | 72 | const positions = [ |
74 | 73 | { value: { content: Position(ChooseOne({choice: 0, poll})), author: pietId, timestamp: now + 1} } |
75 | 74 | ] |
76 | 75 | |
@@ -78,9 +77,9 @@ | ||
78 | 77 | t.false(actual[0], 'invalid vote is not counted') |
79 | 78 | t.end() |
80 | 79 | }) |
81 | 80 | |
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) { | |
83 | 82 | const positions = [ |
84 | 83 | { value: { content: Position(ChooseOne({choice: 0, poll})), author: pietId, timestamp: now + 1} } |
85 | 84 | ] |
86 | 85 |
Built with git-ssb-web