shinkansen-engine 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/src/transformers/transmission/from-document-to-hash/index.mjs +1 -1
- package/docs/array.md +0 -232
- package/docs/boolean.md +0 -25
- package/docs/images/array-array-boolean-all-of.png +0 -0
- package/docs/images/array-array-boolean-any-of.png +0 -0
- package/docs/images/array-array-boolean-enum.png +0 -0
- package/docs/images/array-array-boolean-one-of.png +0 -0
- package/docs/images/array-array-boolean.png +0 -0
- package/docs/images/array-array-null-all-of.png +0 -0
- package/docs/images/array-array-null-any-of.png +0 -0
- package/docs/images/array-array-null-enum.png +0 -0
- package/docs/images/array-array-null-one-of.png +0 -0
- package/docs/images/array-array-null.png +0 -0
- package/docs/images/array-array-number-all-of.png +0 -0
- package/docs/images/array-array-number-any-of.png +0 -0
- package/docs/images/array-array-number-enum.png +0 -0
- package/docs/images/array-array-number-one-of.png +0 -0
- package/docs/images/array-array-number.png +0 -0
- package/docs/images/array-array-string-all-of.png +0 -0
- package/docs/images/array-array-string-any-of.png +0 -0
- package/docs/images/array-array-string-enum.png +0 -0
- package/docs/images/array-array-string-one-of.png +0 -0
- package/docs/images/array-array-string.png +0 -0
- package/docs/images/array-object-boolean-all-of.png +0 -0
- package/docs/images/array-object-boolean-any-of.png +0 -0
- package/docs/images/array-object-boolean-enum.png +0 -0
- package/docs/images/array-object-boolean-one-of.png +0 -0
- package/docs/images/array-object-boolean.png +0 -0
- package/docs/images/array-object-null-all-of.png +0 -0
- package/docs/images/array-object-null-any-of.png +0 -0
- package/docs/images/array-object-null-enum.png +0 -0
- package/docs/images/array-object-null-one-of.png +0 -0
- package/docs/images/array-object-null.png +0 -0
- package/docs/images/array-object-number-all-of.png +0 -0
- package/docs/images/array-object-number-any-of.png +0 -0
- package/docs/images/array-object-number-enum.png +0 -0
- package/docs/images/array-object-number-one-of.png +0 -0
- package/docs/images/array-object-number.png +0 -0
- package/docs/images/array-object-string-all-of.png +0 -0
- package/docs/images/array-object-string-any-of.png +0 -0
- package/docs/images/array-object-string-enum.png +0 -0
- package/docs/images/array-object-string-one-of.png +0 -0
- package/docs/images/array-object-string.png +0 -0
- package/docs/images/boolean-all-of.png +0 -0
- package/docs/images/boolean-any-of.png +0 -0
- package/docs/images/boolean-enum.png +0 -0
- package/docs/images/boolean-one-of.png +0 -0
- package/docs/images/boolean.png +0 -0
- package/docs/images/null-all-of.png +0 -0
- package/docs/images/null-any-of.png +0 -0
- package/docs/images/null-enum.png +0 -0
- package/docs/images/null-one-of.png +0 -0
- package/docs/images/null.png +0 -0
- package/docs/images/number-all-of.png +0 -0
- package/docs/images/number-any-of.png +0 -0
- package/docs/images/number-enum.png +0 -0
- package/docs/images/number-one-of.png +0 -0
- package/docs/images/number.png +0 -0
- package/docs/images/object-boolean-all-of.png +0 -0
- package/docs/images/object-boolean-any-of.png +0 -0
- package/docs/images/object-boolean-enum.png +0 -0
- package/docs/images/object-boolean-one-of.png +0 -0
- package/docs/images/object-boolean.png +0 -0
- package/docs/images/object-null-all-of.png +0 -0
- package/docs/images/object-null-any-of.png +0 -0
- package/docs/images/object-null-enum.png +0 -0
- package/docs/images/object-null-one-of.png +0 -0
- package/docs/images/object-null.png +0 -0
- package/docs/images/object-number-all-of.png +0 -0
- package/docs/images/object-number-any-of.png +0 -0
- package/docs/images/object-number-enum.png +0 -0
- package/docs/images/object-number-one-of.png +0 -0
- package/docs/images/object-number.png +0 -0
- package/docs/images/object-string-all-of.png +0 -0
- package/docs/images/object-string-any-of.png +0 -0
- package/docs/images/object-string-enum.png +0 -0
- package/docs/images/object-string-one-of.png +0 -0
- package/docs/images/object-string.png +0 -0
- package/docs/images/string-all-of.png +0 -0
- package/docs/images/string-any-of.png +0 -0
- package/docs/images/string-enum.png +0 -0
- package/docs/images/string-one-of.png +0 -0
- package/docs/images/string.png +0 -0
- package/docs/null.md +0 -25
- package/docs/number.md +0 -25
- package/docs/object.md +0 -116
- package/docs/string.md +0 -25
- package/test/components/cogs/index.spec.mjs +0 -13
- package/test/components/gears/forward/index.spec.mjs +0 -13
- package/test/components/gears/index.spec.mjs +0 -13
- package/test/components/gears/reverse/index.spec.mjs +0 -13
- package/test/components/pantograph/index.spec.mjs +0 -13
- package/test/components/pinion/check-answers/index.spec.cjs +0 -16
- package/test/components/pinion/check-answers/index.spec.mjs +0 -13
- package/test/components/pinion/error-summary/index.spec.cjs +0 -16
- package/test/components/pinion/error-summary/index.spec.mjs +0 -13
- package/test/components/pinion/fieldset/index.spec.cjs +0 -16
- package/test/components/pinion/fieldset/index.spec.mjs +0 -13
- package/test/components/pinion/index.spec.mjs +0 -13
- package/test/components/rails/index.spec.mjs +0 -13
- package/test/components/signals/index.spec.mjs +0 -13
- package/test/components/sprockets/index.spec.mjs +0 -13
- package/test/engine/index.spec.mjs +0 -13
- package/test/transformers/pinion/check-answers/index.spec.mjs +0 -18
- package/test/transformers/pinion/common/index.spec.mjs +0 -18
- package/test/transformers/pinion/error-message/index.spec.mjs +0 -18
- package/test/transformers/transmission/from-document-to-hash/index.spec.mjs +0 -13
- package/test/transformers/transmission/from-hash-to-document/index.spec.mjs +0 -13
- package/test/transformers/transmission/index.spec.mjs +0 -27
- package/test/transformers/transmission/to-zashiki/index.spec.mjs +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-engine",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "Shinkansen Engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"@babel/preset-env": "^7.22.2",
|
|
65
65
|
"@babel/preset-react": "^7.22.3",
|
|
66
66
|
"@babel/register": "^7.21.0",
|
|
67
|
-
"@modernpoacher/design-system": "1.0.
|
|
68
|
-
"@modernpoacher/hooks": "^1.0.
|
|
69
|
-
"@sequencemedia/gulp": "^1.0.
|
|
67
|
+
"@modernpoacher/design-system": "1.0.29",
|
|
68
|
+
"@modernpoacher/hooks": "^1.0.413",
|
|
69
|
+
"@sequencemedia/gulp": "^1.0.24",
|
|
70
70
|
"@storybook/addon-actions": "^7.0.18",
|
|
71
71
|
"@storybook/addon-essentials": "^7.0.18",
|
|
72
72
|
"@storybook/addon-links": "^7.0.18",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"husky": "^8.0.3",
|
|
102
102
|
"jest": "^29.5.0",
|
|
103
103
|
"mocha": "^10.2.0",
|
|
104
|
-
"postcss": "^8.4.
|
|
104
|
+
"postcss": "^8.4.24",
|
|
105
105
|
"postcss-easy-import": "^4.0.0",
|
|
106
106
|
"postcss-map": "^0.11.0",
|
|
107
107
|
"postcss-normalize": "^10.0.1",
|
package/docs/array.md
DELETED
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
## 3. Array
|
|
3
|
-
|
|
4
|
-
Arrays contain _one_ or _several_ values, which can be any type (including other arrays). Our Stories contain _single-value_ layouts which you can explore under _Controls_.
|
|
5
|
-
|
|
6
|
-
Whether _items is an object_ or _items is an array_ depends on how Zashiki interprets the JSON Schema (assuming that Zashiki has mechanically translated a JSON Schema into a description, and the description hasn't been generated manually). It matters for validating the _document_ according to the _schema_, but for humans the distinction may seem arbitrary. Our stories account for both structures.
|
|
7
|
-
|
|
8
|
-
### Array (_Items is an object_)
|
|
9
|
-
|
|
10
|
-
- [String](#3---1---1-array-items-is-an-object---string)
|
|
11
|
-
- [String (_Enum_)](#3---1---1---1-array-items-is-an-object---string-enum)
|
|
12
|
-
- [String (_Any of_)](#3---1---1---2-array-items-is-an-object---string-any-of)
|
|
13
|
-
- [String (_One of_)](#3---1---1---3-array-items-is-an-object---string-one-of)
|
|
14
|
-
- [Number](#3---1---2-array-items-is-an-object---number)
|
|
15
|
-
- [Number (_Enum_)](#3---1---2---1-array-items-is-an-object---number-enum)
|
|
16
|
-
- [Number (_Any of_)](#3---1---2---2-array-items-is-an-object---number-any-of)
|
|
17
|
-
- [Number (_One of_)](#3---1---2---3-array-items-is-an-object---number-one-of)
|
|
18
|
-
- [Boolean](#3---1---3-array-items-is-an-object---boolean)
|
|
19
|
-
- [Boolean (_Enum_)](#3---1---3---1-array-items-is-an-object---boolean-enum)
|
|
20
|
-
- [Boolean (_Any of_)](#3---1---3---2-array-items-is-an-object---boolean-any-of)
|
|
21
|
-
- [Boolean (_One of_)](#3---1---3---3-array-items-is-an-object---boolean-one-of)
|
|
22
|
-
- [Null](#3---1---4-array-items-is-an-object---null)
|
|
23
|
-
- [Null (_Enum_)](#3---1---4---1-array-items-is-an-object---null-enum)
|
|
24
|
-
- [Null (_Any of_)](#3---1---4---2-array-items-is-an-object---null-any-of)
|
|
25
|
-
- [Null (_One of_)](#3---1---4---3-array-items-is-an-object---null-one-of)
|
|
26
|
-
|
|
27
|
-
### Array (_Items is an array_)
|
|
28
|
-
|
|
29
|
-
- [String](#3---2---1-array-items-is-an-array---string)
|
|
30
|
-
- [String (_Enum_)](#3---2---1---1-array-items-is-an-array---string-enum)
|
|
31
|
-
- [String (_Any of_)](#3---2---1---2-array-items-is-an-array---string-any-of)
|
|
32
|
-
- [String (_One of_)](#3---2---1---3-array-items-is-an-array---string-one-of)
|
|
33
|
-
- [Number](#3---2---2-array-items-is-an-array---number)
|
|
34
|
-
- [Number (_Enum_)](#3---2---2---1-array-items-is-an-array---number-enum)
|
|
35
|
-
- [Number (_Any of_)](#3---2---2---2-array-items-is-an-array---number-any-of)
|
|
36
|
-
- [Number (_One of_)](#3---2---2---3-array-items-is-an-array---number-one-of)
|
|
37
|
-
- [Boolean](#3---2---3-array-items-is-an-array---boolean)
|
|
38
|
-
- [Boolean (_Enum_)](#3---2---3---1-array-items-is-an-array---boolean-enum)
|
|
39
|
-
- [Boolean (_Any of_)](#3---2---3---2-array-items-is-an-array---boolean-any-of)
|
|
40
|
-
- [Boolean (_One of_)](#3---2---3---3-array-items-is-an-array---boolean-one-of)
|
|
41
|
-
- [Null](#3---2---4-array-items-is-an-array---null)
|
|
42
|
-
- [Null (_Enum_)](#3---2---4---1-array-items-is-an-array---null-enum)
|
|
43
|
-
- [Null (_Any of_)](#3---2---4---2-array-items-is-an-array---null-any-of)
|
|
44
|
-
- [Null (_One of_)](#3---2---4---3-array-items-is-an-array---null-one-of)
|
|
45
|
-
|
|
46
|
-
### 3 - 1 - 1. Array (_Items is an object_) - String
|
|
47
|
-
|
|
48
|
-

|
|
49
|
-
|
|
50
|
-
_Back to [Array](#3-array)_
|
|
51
|
-
|
|
52
|
-
### 3 - 1 - 1 - 1. Array (_Items is an object_) - String (_Enum_)
|
|
53
|
-
|
|
54
|
-

|
|
55
|
-
|
|
56
|
-
_Back to [Array](#3-array)_
|
|
57
|
-
|
|
58
|
-
### 3 - 1 - 1 - 2. Array (_Items is an object_) - String (_Any Of_)
|
|
59
|
-
|
|
60
|
-

|
|
61
|
-
|
|
62
|
-
_Back to [Array](#3-array)_
|
|
63
|
-
|
|
64
|
-
### 3 - 1 - 1 - 3. Array (_Items is an object_) - String (_One Of_)
|
|
65
|
-
|
|
66
|
-

|
|
67
|
-
|
|
68
|
-
### 3 - 1 - 2. Array (_Items is an object_) - Number
|
|
69
|
-
|
|
70
|
-

|
|
71
|
-
|
|
72
|
-
_Back to [Array](#3-array)_
|
|
73
|
-
|
|
74
|
-
### 3 - 1 - 2 - 1. Array (_Items is an object_) - Number (_Enum_)
|
|
75
|
-
|
|
76
|
-

|
|
77
|
-
|
|
78
|
-
_Back to [Array](#3-array)_
|
|
79
|
-
|
|
80
|
-
### 3 - 1 - 2 - 2. Array (_Items is an object_) - Number (_Any Of_)
|
|
81
|
-
|
|
82
|
-

|
|
83
|
-
|
|
84
|
-
_Back to [Array](#3-array)_
|
|
85
|
-
|
|
86
|
-
### 3 - 1 - 2 - 3. Array (_Items is an object_) - Number (_One Of_)
|
|
87
|
-
|
|
88
|
-

|
|
89
|
-
|
|
90
|
-
_Back to [Array](#3-array)_
|
|
91
|
-
|
|
92
|
-
### 3 - 1 - 3. Array (_Items is an object_) - Boolean
|
|
93
|
-
|
|
94
|
-

|
|
95
|
-
|
|
96
|
-
_Back to [Array](#3-array)_
|
|
97
|
-
|
|
98
|
-
### 3 - 1 - 3 - 1. Array (_Items is an object_) - Boolean (_Enum_)
|
|
99
|
-
|
|
100
|
-

|
|
101
|
-
|
|
102
|
-
_Back to [Array](#3-array)_
|
|
103
|
-
|
|
104
|
-
### 3 - 1 - 3 - 2. Array (_Items is an object_) - Boolean (_Any Of_)
|
|
105
|
-
|
|
106
|
-

|
|
107
|
-
|
|
108
|
-
_Back to [Array](#3-array)_
|
|
109
|
-
|
|
110
|
-
### 3 - 1 - 3 - 3. Array (_Items is an object_) - Boolean (_One Of_)
|
|
111
|
-
|
|
112
|
-

|
|
113
|
-
|
|
114
|
-
_Back to [Array](#3-array)_
|
|
115
|
-
|
|
116
|
-
### 3 - 1 - 4. Array (_Items is an object_) - Null
|
|
117
|
-
|
|
118
|
-

|
|
119
|
-
|
|
120
|
-
_Back to [Array](#3-array)_
|
|
121
|
-
|
|
122
|
-
### 3 - 1 - 4 - 1. Array (_Items is an object_) - Null (_Enum_)
|
|
123
|
-
|
|
124
|
-

|
|
125
|
-
|
|
126
|
-
_Back to [Array](#3-array)_
|
|
127
|
-
|
|
128
|
-
### 3 - 1 - 4 - 2. Array (_Items is an object_) - Null (_Any Of_)
|
|
129
|
-
|
|
130
|
-

|
|
131
|
-
|
|
132
|
-
_Back to [Array](#3-array)_
|
|
133
|
-
|
|
134
|
-
### 3 - 1 - 4 - 3. Array (_Items is an object_) - Null (_One Of_)
|
|
135
|
-
|
|
136
|
-

|
|
137
|
-
|
|
138
|
-
_Back to [Array](#3-array)_
|
|
139
|
-
|
|
140
|
-
### 3 - 2 - 1. Array (_Items is an array_) - String
|
|
141
|
-
|
|
142
|
-

|
|
143
|
-
|
|
144
|
-
_Back to [Array](#3-array)_
|
|
145
|
-
|
|
146
|
-
### 3 - 2 - 1 - 1. Array (_Items is an array_) - String (_Enum_)
|
|
147
|
-
|
|
148
|
-

|
|
149
|
-
|
|
150
|
-
_Back to [Array](#3-array)_
|
|
151
|
-
|
|
152
|
-
### 3 - 2 - 1 - 2. Array (_Items is an array_) - String (_Any Of_)
|
|
153
|
-
|
|
154
|
-

|
|
155
|
-
|
|
156
|
-
_Back to [Array](#3-array)_
|
|
157
|
-
|
|
158
|
-
### 3 - 2 - 1 - 3. Array (_Items is an array_) - String (_One Of_)
|
|
159
|
-
|
|
160
|
-

|
|
161
|
-
|
|
162
|
-
### 3 - 2 - 2. Array (_Items is an array_) - Number
|
|
163
|
-
|
|
164
|
-

|
|
165
|
-
|
|
166
|
-
_Back to [Array](#3-array)_
|
|
167
|
-
|
|
168
|
-
### 3 - 2 - 2 - 1. Array (_Items is an array_) - Number (_Enum_)
|
|
169
|
-
|
|
170
|
-

|
|
171
|
-
|
|
172
|
-
_Back to [Array](#3-array)_
|
|
173
|
-
|
|
174
|
-
### 3 - 2 - 2 - 2. Array (_Items is an array_) - Number (_Any Of_)
|
|
175
|
-
|
|
176
|
-

|
|
177
|
-
|
|
178
|
-
_Back to [Array](#3-array)_
|
|
179
|
-
|
|
180
|
-
### 3 - 2 - 2 - 3. Array (_Items is an array_) - Number (_One Of_)
|
|
181
|
-
|
|
182
|
-

|
|
183
|
-
|
|
184
|
-
_Back to [Array](#3-array)_
|
|
185
|
-
|
|
186
|
-
### 3 - 2 - 3. Array (_Items is an array_) - Boolean
|
|
187
|
-
|
|
188
|
-

|
|
189
|
-
|
|
190
|
-
_Back to [Array](#3-array)_
|
|
191
|
-
|
|
192
|
-
### 3 - 2 - 3 - 1. Array (_Items is an array_) - Boolean (_Enum_)
|
|
193
|
-
|
|
194
|
-

|
|
195
|
-
|
|
196
|
-
_Back to [Array](#3-array)_
|
|
197
|
-
|
|
198
|
-
### 3 - 2 - 3 - 2. Array (_Items is an array_) - Boolean (_Any Of_)
|
|
199
|
-
|
|
200
|
-

|
|
201
|
-
|
|
202
|
-
_Back to [Array](#3-array)_
|
|
203
|
-
|
|
204
|
-
### 3 - 2 - 3 - 3. Array (_Items is an array_) - Boolean (_One Of_)
|
|
205
|
-
|
|
206
|
-

|
|
207
|
-
|
|
208
|
-
_Back to [Array](#3-array)_
|
|
209
|
-
|
|
210
|
-
### 3 - 2 - 4. Array (_Items is an array_) - Null
|
|
211
|
-
|
|
212
|
-

|
|
213
|
-
|
|
214
|
-
_Back to [Array](#3-array)_
|
|
215
|
-
|
|
216
|
-
### 3 - 2 - 4 - 1. Array (_Items is an array_) - Null (_Enum_)
|
|
217
|
-
|
|
218
|
-

|
|
219
|
-
|
|
220
|
-
_Back to [Array](#3-array)_
|
|
221
|
-
|
|
222
|
-
### 3 - 2 - 4 - 2. Array (_Items is an array_) - Null (_Any Of_)
|
|
223
|
-
|
|
224
|
-

|
|
225
|
-
|
|
226
|
-
_Back to [Array](#3-array)_
|
|
227
|
-
|
|
228
|
-
### 3 - 2 - 4 - 3. Array (_Items is an array_) - Null (_One Of_)
|
|
229
|
-
|
|
230
|
-

|
|
231
|
-
|
|
232
|
-
_Back to [Array](#3-array)_
|
package/docs/boolean.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
## 5. Boolean
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
- [Boolean (_Enum_)](#5---1-boolean-enum)
|
|
6
|
-
- [Boolean (_Any of_)](#5---2-boolean-any-of)
|
|
7
|
-
- [Boolean (_One of_)](#5---3-boolean-one-of)
|
|
8
|
-
|
|
9
|
-
### 5 - 1. Boolean (_Enum_)
|
|
10
|
-
|
|
11
|
-

|
|
12
|
-
|
|
13
|
-
_Back to [Boolean](#5-boolean)_
|
|
14
|
-
|
|
15
|
-
### 5 - 2. Boolean (_Any Of_)
|
|
16
|
-
|
|
17
|
-

|
|
18
|
-
|
|
19
|
-
_Back to [Boolean](#5-boolean)_
|
|
20
|
-
|
|
21
|
-
### 5 - 3. Boolean (_One Of_)
|
|
22
|
-
|
|
23
|
-

|
|
24
|
-
|
|
25
|
-
_Back to [Boolean](#5-boolean)_
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/images/boolean.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/images/null.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/images/number.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/images/string.png
DELETED
|
Binary file
|
package/docs/null.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
## 6. Null
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
- [Null (_Enum_)](#6---1-null-enum)
|
|
6
|
-
- [Null (_Any of_)](#6---2-null-any-of)
|
|
7
|
-
- [Null (_One of_)](#6---3-null-one-of)
|
|
8
|
-
|
|
9
|
-
### 6 - 1. Null (_Enum_)
|
|
10
|
-
|
|
11
|
-

|
|
12
|
-
|
|
13
|
-
_Back to [Null](#6-null)_
|
|
14
|
-
|
|
15
|
-
### 6 - 2. Null (_Any Of_)
|
|
16
|
-
|
|
17
|
-

|
|
18
|
-
|
|
19
|
-
_Back to [Null](#6-null)_
|
|
20
|
-
|
|
21
|
-
### 6 - 3. Null (_One Of_)
|
|
22
|
-
|
|
23
|
-

|
|
24
|
-
|
|
25
|
-
_Back to [Null](#6-null)_
|
package/docs/number.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
## 2. Number
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
- [Number (_Enum_)](#2---1-number-enum)
|
|
6
|
-
- [Number (_Any of_)](#2---2-number-any-of)
|
|
7
|
-
- [Number (_One of_)](#2---3-number-one-of)
|
|
8
|
-
|
|
9
|
-
### 2 - 1. Number (_Enum_)
|
|
10
|
-
|
|
11
|
-

|
|
12
|
-
|
|
13
|
-
_Back to [Number](#2-number)_
|
|
14
|
-
|
|
15
|
-
### 2 - 2. Number (_Any Of_)
|
|
16
|
-
|
|
17
|
-

|
|
18
|
-
|
|
19
|
-
_Back to [Number](#2-number)_
|
|
20
|
-
|
|
21
|
-
### 2 - 3. Number (_One Of_)
|
|
22
|
-
|
|
23
|
-

|
|
24
|
-
|
|
25
|
-
_Back to [Number](#2-number)_
|
package/docs/object.md
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
## 4. Object
|
|
2
|
-
|
|
3
|
-
Objects contain _one_ or _several_ values, which can be any type (including other objects). Our Stories contain _single-value_ layouts which you can explore under _Controls_.
|
|
4
|
-
|
|
5
|
-
- [Object - String](#4---1-object---string)
|
|
6
|
-
- [Object - String (_Enum_)](#4---1---1-object---string-enum)
|
|
7
|
-
- [Object - String (_Any of_)](#4---1---2-object---string-any-of)
|
|
8
|
-
- [Object - String (_One of_)](#4---1---3-object---string-one-of)
|
|
9
|
-
- [Object - Number](#4---2-object---number)
|
|
10
|
-
- [Object - Number (_Enum_)](#4---2---1-object---number-enum)
|
|
11
|
-
- [Object - Number (_Any of_)](#4---2---2-object---number-any-of)
|
|
12
|
-
- [Object - Number (_One of_)](#4---2---3-object---number-one-of)
|
|
13
|
-
- [Object - Boolean](#4---3-object---boolean)
|
|
14
|
-
- [Object - Boolean (_Enum_)](#4---3---1-object---boolean-enum)
|
|
15
|
-
- [Object - Boolean (_Any of_)](#4---3---2-object---boolean-any-of)
|
|
16
|
-
- [Object - Boolean (_One of_)](#4---3---3-object---boolean-one-of)
|
|
17
|
-
- [Object - Null](#4---4-object---null)
|
|
18
|
-
- [Object - Null (_Enum_)](#4---4---1-object---null-enum)
|
|
19
|
-
- [Object - Null (_Any of_)](#4---4---2-object---null-any-of)
|
|
20
|
-
- [Object - Null (_One of_)](#4---4---3-object---null-one-of)
|
|
21
|
-
|
|
22
|
-
### 4 - 1. Object - String
|
|
23
|
-
|
|
24
|
-

|
|
25
|
-
|
|
26
|
-
_Back to [Object](#4-object)_
|
|
27
|
-
|
|
28
|
-
### 4 - 1 - 1. Object - String (_Enum_)
|
|
29
|
-
|
|
30
|
-

|
|
31
|
-
|
|
32
|
-
_Back to [Object](#4-object)_
|
|
33
|
-
|
|
34
|
-
### 4 - 1 - 2. Object - String (_Any Of_)
|
|
35
|
-
|
|
36
|
-

|
|
37
|
-
|
|
38
|
-
_Back to [Object](#4-object)_
|
|
39
|
-
|
|
40
|
-
### 4 - 1 - 3. Object - String (_One Of_)
|
|
41
|
-
|
|
42
|
-

|
|
43
|
-
|
|
44
|
-
_Back to [Object](#4-object)_
|
|
45
|
-
|
|
46
|
-
### 4 - 2. Object - Number
|
|
47
|
-
|
|
48
|
-

|
|
49
|
-
|
|
50
|
-
_Back to [Object](#4-object)_
|
|
51
|
-
|
|
52
|
-
### 4 - 2 - 1. Object - Number (_Enum_)
|
|
53
|
-
|
|
54
|
-

|
|
55
|
-
|
|
56
|
-
_Back to [Object](#4-object)_
|
|
57
|
-
|
|
58
|
-
### 4 - 2 - 2. Object - Number (_Any Of_)
|
|
59
|
-
|
|
60
|
-

|
|
61
|
-
|
|
62
|
-
_Back to [Object](#4-object)_
|
|
63
|
-
|
|
64
|
-
### 4 - 2 - 3. Object - Number (_One Of_)
|
|
65
|
-
|
|
66
|
-

|
|
67
|
-
|
|
68
|
-
_Back to [Object](#4-object)_
|
|
69
|
-
|
|
70
|
-
### 4 - 3. Object - Boolean
|
|
71
|
-
|
|
72
|
-

|
|
73
|
-
|
|
74
|
-
_Back to [Object](#4-object)_
|
|
75
|
-
|
|
76
|
-
### 4 - 3 - 1. Object - Boolean (_Enum_)
|
|
77
|
-
|
|
78
|
-

|
|
79
|
-
|
|
80
|
-
_Back to [Object](#4-object)_
|
|
81
|
-
|
|
82
|
-
### 4 - 3 - 2. Object - Boolean (_Any Of_)
|
|
83
|
-
|
|
84
|
-

|
|
85
|
-
|
|
86
|
-
_Back to [Object](#4-object)_
|
|
87
|
-
|
|
88
|
-
### 4 - 3 - 3. Object - Boolean (_One Of_)
|
|
89
|
-
|
|
90
|
-

|
|
91
|
-
|
|
92
|
-
_Back to [Object](#4-object)_
|
|
93
|
-
|
|
94
|
-
### 4 - 4. Object - Null
|
|
95
|
-
|
|
96
|
-

|
|
97
|
-
|
|
98
|
-
_Back to [Object](#4-object)_
|
|
99
|
-
|
|
100
|
-
### 4 - 4 - 1. Object - Null (_Enum_)
|
|
101
|
-
|
|
102
|
-

|
|
103
|
-
|
|
104
|
-
_Back to [Object](#4-object)_
|
|
105
|
-
|
|
106
|
-
### 4 - 4 - 2. Object - Null (_Any Of_)
|
|
107
|
-
|
|
108
|
-

|
|
109
|
-
|
|
110
|
-
_Back to [Object](#4-object)_
|
|
111
|
-
|
|
112
|
-
### 4 - 4 - 3. Object - Null (_One Of_)
|
|
113
|
-
|
|
114
|
-

|
|
115
|
-
|
|
116
|
-
_Back to [Object](#4-object)_
|
package/docs/string.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
## 1. String
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
- [String (_Enum_)](#1---1-string-enum)
|
|
6
|
-
- [String (_Any of_)](#1---2-string-any-of)
|
|
7
|
-
- [String (_One of_)](#1---3-string-one-of)
|
|
8
|
-
|
|
9
|
-
### 1 - 1. String (_Enum_)
|
|
10
|
-
|
|
11
|
-

|
|
12
|
-
|
|
13
|
-
_Back to [String](#1-string)_
|
|
14
|
-
|
|
15
|
-
### 1 - 2. String (_Any Of_)
|
|
16
|
-
|
|
17
|
-

|
|
18
|
-
|
|
19
|
-
_Back to [String](#1-string)_
|
|
20
|
-
|
|
21
|
-
### 1 - 3. String (_One Of_)
|
|
22
|
-
|
|
23
|
-

|
|
24
|
-
|
|
25
|
-
_Back to [String](#1-string)_
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import Cogs from 'shinkansen-engine/components/cogs'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/components/cogs', () => {
|
|
9
|
-
it('is an object', () => {
|
|
10
|
-
return expect(Cogs)
|
|
11
|
-
.to.be.an('object')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import Forward from 'shinkansen-engine/components/gears/forward'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/components/gears/forward', () => {
|
|
9
|
-
it('is a function', () => {
|
|
10
|
-
return expect(Forward)
|
|
11
|
-
.to.be.a('function')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import Gears from 'shinkansen-engine/components/gears'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/components/gears', () => {
|
|
9
|
-
it('is a function', () => {
|
|
10
|
-
return expect(Gears)
|
|
11
|
-
.to.be.a('function')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import Reverse from 'shinkansen-engine/components/gears/reverse'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/components/gears/reverse', () => {
|
|
9
|
-
it('is a function', () => {
|
|
10
|
-
return expect(Reverse)
|
|
11
|
-
.to.be.a('function')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import Pantograph from 'shinkansen-engine/components/pantograph'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/components/pantograph', () => {
|
|
9
|
-
it('is a function', () => {
|
|
10
|
-
return expect(Pantograph)
|
|
11
|
-
.to.be.a('function')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const chai = require('chai')
|
|
2
|
-
const sinonChai = require('sinon-chai')
|
|
3
|
-
const {
|
|
4
|
-
expect
|
|
5
|
-
} = chai
|
|
6
|
-
|
|
7
|
-
const CheckAnswers = require('shinkansen-engine/components/pinion/check-answers')
|
|
8
|
-
|
|
9
|
-
chai.use(sinonChai)
|
|
10
|
-
|
|
11
|
-
describe('shinkansen-engine/components/pinion/check-answers', () => {
|
|
12
|
-
it('is a function', () => {
|
|
13
|
-
return expect(CheckAnswers)
|
|
14
|
-
.to.be.a('function')
|
|
15
|
-
})
|
|
16
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import CheckAnswers from 'shinkansen-engine/components/pinion/check-answers'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/components/pinion/check-answers', () => {
|
|
9
|
-
it('is a function', () => {
|
|
10
|
-
return expect(CheckAnswers)
|
|
11
|
-
.to.be.a('function')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const chai = require('chai')
|
|
2
|
-
const sinonChai = require('sinon-chai')
|
|
3
|
-
const {
|
|
4
|
-
expect
|
|
5
|
-
} = chai
|
|
6
|
-
|
|
7
|
-
const ErrorSummary = require('shinkansen-engine/components/pinion/error-summary')
|
|
8
|
-
|
|
9
|
-
chai.use(sinonChai)
|
|
10
|
-
|
|
11
|
-
describe('shinkansen-engine/components/pinion/error-summary', () => {
|
|
12
|
-
it('is a function', () => {
|
|
13
|
-
return expect(ErrorSummary)
|
|
14
|
-
.to.be.a('function')
|
|
15
|
-
})
|
|
16
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import ErrorSummary from 'shinkansen-engine/components/pinion/error-summary'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/components/pinion/error-summary', () => {
|
|
9
|
-
it('is a function', () => {
|
|
10
|
-
return expect(ErrorSummary)
|
|
11
|
-
.to.be.a('function')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const chai = require('chai')
|
|
2
|
-
const sinonChai = require('sinon-chai')
|
|
3
|
-
const {
|
|
4
|
-
expect
|
|
5
|
-
} = chai
|
|
6
|
-
|
|
7
|
-
const Fieldset = require('shinkansen-engine/components/pinion/error-summary')
|
|
8
|
-
|
|
9
|
-
chai.use(sinonChai)
|
|
10
|
-
|
|
11
|
-
describe('shinkansen-engine/components/pinion/error-summary', () => {
|
|
12
|
-
it('is a function', () => {
|
|
13
|
-
return expect(Fieldset)
|
|
14
|
-
.to.be.a('function')
|
|
15
|
-
})
|
|
16
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import Fieldset from 'shinkansen-engine/components/pinion/fieldset'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/components/pinion/fieldset', () => {
|
|
9
|
-
it('is a function', () => {
|
|
10
|
-
return expect(Fieldset)
|
|
11
|
-
.to.be.a('function')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import Pinion from 'shinkansen-engine/components/pinion'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/components/pinion', () => {
|
|
9
|
-
it('is a function', () => {
|
|
10
|
-
return expect(Pinion)
|
|
11
|
-
.to.be.a('function')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import Rails from 'shinkansen-engine/components/rails'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/components/rails', () => {
|
|
9
|
-
it('is a function', () => {
|
|
10
|
-
return expect(Rails)
|
|
11
|
-
.to.be.a('function')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import Signals from 'shinkansen-engine/components/signals'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/components/signals', () => {
|
|
9
|
-
it('is an object', () => {
|
|
10
|
-
return expect(Signals)
|
|
11
|
-
.to.be.an('object')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import Sprockets from 'shinkansen-engine/components/sprockets'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/components/sprockets', () => {
|
|
9
|
-
it('is an object', () => {
|
|
10
|
-
return expect(Sprockets)
|
|
11
|
-
.to.be.a('object')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import Engine from 'shinkansen-engine/engine'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/engine', () => {
|
|
9
|
-
it('is a function', () => {
|
|
10
|
-
return expect(Engine)
|
|
11
|
-
.to.be.a('function')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import * as checkAnswers from 'shinkansen-engine/transformers/pinion/check-answers'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/transformers/pinion/check-answers', () => {
|
|
9
|
-
/**
|
|
10
|
-
* A pass-through from `shinkansen-pinion` so we don't interrogate the module
|
|
11
|
-
*
|
|
12
|
-
* (This project exports exactly what `shinkansen-pinion` exports)
|
|
13
|
-
*/
|
|
14
|
-
it('is a module', () => {
|
|
15
|
-
return expect(checkAnswers)
|
|
16
|
-
.to.be.a('module')
|
|
17
|
-
})
|
|
18
|
-
})
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import * as common from 'shinkansen-engine/transformers/pinion/common'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/transformers/pinion/common', () => {
|
|
9
|
-
/**
|
|
10
|
-
* A pass-through from `shinkansen-pinion` so we don't interrogate the module
|
|
11
|
-
*
|
|
12
|
-
* (This project exports exactly what `shinkansen-pinion` exports)
|
|
13
|
-
*/
|
|
14
|
-
it('is a module', () => {
|
|
15
|
-
return expect(common)
|
|
16
|
-
.to.be.a('module')
|
|
17
|
-
})
|
|
18
|
-
})
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import * as errorMessage from 'shinkansen-engine/transformers/pinion/error-message'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/transformers/pinion/error-message', () => {
|
|
9
|
-
/**
|
|
10
|
-
* A pass-through from `shinkansen-pinion` so we don't interrogate the module
|
|
11
|
-
*
|
|
12
|
-
* (This project exports exactly what `shinkansen-pinion` exports)
|
|
13
|
-
*/
|
|
14
|
-
it('is a module', () => {
|
|
15
|
-
return expect(errorMessage)
|
|
16
|
-
.to.be.a('module')
|
|
17
|
-
})
|
|
18
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import fromDocumentToHash from 'shinkansen-engine/transformers/transmission/from-document-to-hash'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/transformers/transmission/from-document-to-hash', () => {
|
|
9
|
-
it('is a function', () => {
|
|
10
|
-
return expect(fromDocumentToHash)
|
|
11
|
-
.to.be.a('function')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import fromHashToDocument from 'shinkansen-engine/transformers/transmission/from-hash-to-document'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/transformers/transmission/from-hash-to-document', () => {
|
|
9
|
-
it('is a function', () => {
|
|
10
|
-
return expect(fromHashToDocument)
|
|
11
|
-
.to.be.a('function')
|
|
12
|
-
})
|
|
13
|
-
})
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
fromDocumentToHash,
|
|
6
|
-
fromHashToDocument,
|
|
7
|
-
toZashiki
|
|
8
|
-
} from 'shinkansen-engine/transformers/transmission'
|
|
9
|
-
|
|
10
|
-
chai.use(sinonChai)
|
|
11
|
-
|
|
12
|
-
describe('shinkansen-engine/transformers/transmission', () => {
|
|
13
|
-
it('is a function', () => {
|
|
14
|
-
return expect(fromDocumentToHash)
|
|
15
|
-
.to.be.a('function')
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
it('is a function', () => {
|
|
19
|
-
return expect(fromHashToDocument)
|
|
20
|
-
.to.be.a('function')
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
it('is a function', () => {
|
|
24
|
-
return expect(toZashiki)
|
|
25
|
-
.to.be.a('function')
|
|
26
|
-
})
|
|
27
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import chai, { expect } from 'chai'
|
|
2
|
-
import sinonChai from 'sinon-chai'
|
|
3
|
-
|
|
4
|
-
import toZashiki from 'shinkansen-engine/transformers/transmission/to-zashiki'
|
|
5
|
-
|
|
6
|
-
chai.use(sinonChai)
|
|
7
|
-
|
|
8
|
-
describe('shinkansen-engine/transformers/transmission/to-zashiki', () => {
|
|
9
|
-
it('is a function', () => {
|
|
10
|
-
return expect(toZashiki)
|
|
11
|
-
.to.be.a('function')
|
|
12
|
-
})
|
|
13
|
-
})
|