@@ -16,8 +16,8 @@ type ModifiedLevel = TT.Level & {
16
16
const context :Partial < T . MachineContext > = {
17
17
env :{ machineId :'' , sessionId :'' , token :'' } ,
18
18
error :null ,
19
- position :{ levelId :'1 ' , stepId :'1.1 ' } ,
20
- progress :{ levels :{ } , steps :{ } , complete :false } ,
19
+ position :{ levelId :'2 ' , stepId :'2.2 ' } ,
20
+ progress :{ levels :{ '1' : true } , steps :{ '1.1' : true , '1.2' : true , '1.3' : true , '2.1' : true } , complete :false } ,
21
21
processes :[ ] ,
22
22
testStatus :null ,
23
23
tutorial :{
@@ -41,11 +41,11 @@ const context: Partial<T.MachineContext> = {
41
41
levels :[
42
42
{
43
43
id :'1' ,
44
- title :'A Title ' ,
45
- summary :'A summary of the level' ,
44
+ title :'First Level ' ,
45
+ summary :'A summary of thefirst level' ,
46
46
content :'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!' ,
47
47
setup :null ,
48
- status :'ACTIVE ' as 'ACTIVE ' ,
48
+ status :'COMPLETE ' as 'COMPLETE ' ,
49
49
steps :[
50
50
{
51
51
id :'1.1' ,
@@ -57,6 +57,7 @@ const context: Partial<T.MachineContext> = {
57
57
commits :[ 'hijklmn' ] ,
58
58
} ,
59
59
status :'COMPLETE' ,
60
+ hints :[ 'First Hint' , 'Second Hint' ] ,
60
61
} ,
61
62
{
62
63
id :'1.2' ,
@@ -67,7 +68,7 @@ const context: Partial<T.MachineContext> = {
67
68
solution :{
68
69
commits :[ 'hijklmn' ] ,
69
70
} ,
70
- status :'ACTIVE ' ,
71
+ status :'COMPLETE ' ,
71
72
} ,
72
73
{
73
74
id :'1.3' ,
@@ -78,6 +79,92 @@ const context: Partial<T.MachineContext> = {
78
79
solution :{
79
80
commits :[ 'hijklmn' ] ,
80
81
} ,
82
+ status :'COMPLETE' ,
83
+ } ,
84
+ ] ,
85
+ } ,
86
+ {
87
+ id :'2' ,
88
+ title :'The Second Level' ,
89
+ summary :'A summary of the 2nd level' ,
90
+ content :'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!' ,
91
+ setup :null ,
92
+ status :'ACTIVE' as 'ACTIVE' ,
93
+ steps :[
94
+ {
95
+ id :'2.1' ,
96
+ content :'Should support markdown test\n ```shell\nnpn install some-package\n```\nwhew it works!' ,
97
+ setup :{
98
+ commits :[ 'abcdefg' ] ,
99
+ } ,
100
+ solution :{
101
+ commits :[ 'hijklmn' ] ,
102
+ } ,
103
+ status :'COMPLETE' ,
104
+ } ,
105
+ {
106
+ id :'2.2' ,
107
+ content :'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!' ,
108
+ setup :{
109
+ commits :[ 'abcdefg' ] ,
110
+ } ,
111
+ solution :{
112
+ commits :[ 'hijklmn' ] ,
113
+ } ,
114
+ status :'ACTIVE' ,
115
+ } ,
116
+ {
117
+ id :'2.3' ,
118
+ content :'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!' ,
119
+ setup :{
120
+ commits :[ 'abcdefg' ] ,
121
+ } ,
122
+ solution :{
123
+ commits :[ 'hijklmn' ] ,
124
+ } ,
125
+ status :'INCOMPLETE' ,
126
+ } ,
127
+ ] ,
128
+ } ,
129
+ {
130
+ id :'3' ,
131
+ title :'A Third Level' ,
132
+ summary :'A summary of the 3rd level' ,
133
+ content :'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!' ,
134
+ setup :null ,
135
+ status :'INCOMPLETE' ,
136
+ steps :[
137
+ {
138
+ id :'3.1' ,
139
+ content :'Should support markdown test\n ```shell\nnpn install some-package\n```\nwhew it works!' ,
140
+ setup :{
141
+ commits :[ 'abcdefg' ] ,
142
+ } ,
143
+ solution :{
144
+ commits :[ 'hijklmn' ] ,
145
+ } ,
146
+ status :'INCOMPLETE' ,
147
+ } ,
148
+ {
149
+ id :'3.2' ,
150
+ content :'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!' ,
151
+ setup :{
152
+ commits :[ 'abcdefg' ] ,
153
+ } ,
154
+ solution :{
155
+ commits :[ 'hijklmn' ] ,
156
+ } ,
157
+ status :'INCOMPLETE' ,
158
+ } ,
159
+ {
160
+ id :'3.3' ,
161
+ content :'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!' ,
162
+ setup :{
163
+ commits :[ 'abcdefg' ] ,
164
+ } ,
165
+ solution :{
166
+ commits :[ 'hijklmn' ] ,
167
+ } ,
81
168
status :'INCOMPLETE' ,
82
169
} ,
83
170
] ,