-
Notifications
You must be signed in to change notification settings - Fork 1
/
last-test.txt
136 lines (134 loc) · 8.35 KB
/
last-test.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
What's your favorite int?
What's your favorite int?
What's your favorite int?
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor) [y/n]
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor)
Is the Company the client? (y=client/n=contractor) [y/n] PASS test-staging/test/questioner.test.js
Questioner
QnA flow
✓ skips questions with a pre-existing parameter value (67 ms)
✓ processes question-local maps when question is defined-skipped (2 ms)
✓ skips question-local maps when question is condition-skipped (1 ms)
✓ when question is condition-skipped, uses 'elseValue' if present
✓ Will re-ask questions when answer form invalid (63 ms)
✓ Will raise an exception on an invalid parameter type. (21 ms)
✓ Will raise an exception on no 'parameter' for question.
✓ Will raise an exception on no 'prompt' for question.
boolean questions
✓ simple boolean question answer 'y' -> true (7 ms)
✓ simple boolean question answer 'n' -> false (1 ms)
✓ simple boolean question answer 'Y' -> true (1 ms)
✓ simple boolean question answer 'N' -> false (1 ms)
✓ simple boolean question answer 't' -> true (1 ms)
✓ simple boolean question answer 'T' -> true (1 ms)
✓ simple boolean question answer 'f' -> false (1 ms)
✓ simple boolean question answer 'F' -> false (1 ms)
✓ simple boolean question answer 'yes' -> true (1 ms)
✓ simple boolean question answer 'Yes' -> true
✓ simple boolean question answer 'no' -> false (1 ms)
✓ simple boolean question answer 'No' -> false (1 ms)
✓ simple boolean question answer 'true' -> true (1 ms)
✓ simple boolean question answer 'True' -> true
✓ simple boolean question answer 'false' -> false (1 ms)
✓ simple boolean question answer 'False' -> false (1 ms)
Global mappings
✓ value map yes -> us (1 ms)
✓ value map no -> them
✓ source map 'FAVE_INT'=1, yields 'FAVE_DIFF'=2' (1 ms)
✓ source map 'FAVE_INT'=1, yields 'IS_FAVE_NOT_ZERO'=true' (2 ms)
✓ source map 'FAVE_INT'=0, yields 'IS_FAVE_NOT_ZERO'=false'
✓ maps 'source'd paramType bool input 'y' -> true (1 ms)
✓ maps 'source'd paramType int input '1' -> 1 (1 ms)
Local mappings
✓ Local map yes -> us (1 ms)
✓ Local map no -> them
Conditional questions
✓ Conditional question yes -> Do you like milk? (83 ms)
✓ Conditional question no -> Is this the end? (68 ms)
✓ when question is condition-skipped, uses 'elseSource' if present (1 ms)
Value transforms
✓ Value 'true' type 'boolean' -> true (1 ms)
✓ Value 'true' type 'bool' -> true
✓ Value 'true' type 'string' -> "true" (1 ms)
✓ Value '5' type 'integer' -> 5
✓ Value '5.5' type 'float' -> 5.5 (1 ms)
✓ Value '6.6' type 'numeric' -> 6.6 (1 ms)
answer requirements
✓ Value 'Hi' (string) and requirement requireSomething=true is accepted
✓ Value '1' (int) and requirement requireSomething=true is accepted (1 ms)
✓ Value 'true' (bool) and requirement requireSomething=true is accepted
✓ Value 'Hi' (string) and requirement requireTruthy=true is accepted
✓ Value '1' (int) and requirement requireTruthy=true is accepted (1 ms)
✓ Value 'true' (bool) and requirement requireTruthy=true is accepted
✓ Value 'Hi' (string) and requirement requireExact=Hi is accepted (1 ms)
✓ Value '1' (int) and requirement requireExact=1 is accepted (1 ms)
✓ Value 'true' (bool) and requirement requireExact=true is accepted
✓ Value 'false' (bool) and requirement requireExact=false is accepted (1 ms)
✓ Value 'Hi' (string) and requirement requireOneOf=[ 'Hi', 'Bye' ] is accepted
✓ Value '1' (int) and requirement requireOneOf=[ 1, 2 ] is accepted (1 ms)
✓ Value 'true' (bool) and requirement requireOneOf=[ true, false ] is accepted (1 ms)
✓ Value 'false' (bool) and requirement requireOneOf=[ false, true ] is accepted
✓ Value 'Hi' (string) and requirement requireMatch=Hi is accepted (1 ms)
✓ Value 'Hi' (string) and requirement requireMatch=[Hi]* is accepted
✓ Value 'Hi' (string) and requirement requireMatch=^[Hi]*$ is accepted (1 ms)
cookie parameters
✓ are passed from questions
✓ are passed from question maps
✓ are passed from question maps
-----------------|---------|----------|---------|---------|---------------------------------------------------------------------------------------------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-----------------|---------|----------|---------|---------|---------------------------------------------------------------------------------------------------------
All files | 88.67 | 76.04 | 90.32 | 87.6 |
lib | 86.69 | 76.04 | 90.32 | 85.35 |
questioner.mjs | 86.69 | 76.04 | 90.32 | 85.35 | 114,119-123,136,147,156-157,179-180,219,238,257,268,271,318,347-353,362,365,368,372,375,378,383,389,393
lib/test | 100 | 100 | 100 | 100 |
test-data.js | 100 | 100 | 100 | 100 |
-----------------|---------|----------|---------|---------|---------------------------------------------------------------------------------------------------------
Test Suites: 1 passed, 1 total
Tests: 62 passed, 62 total
Snapshots: 0 total
Time: 0.876 s, estimated 1 s
Ran all test suites matching /.\/test-staging/i.