oc 0.50.48 → 0.50.49
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/.turbo/turbo-build.log +18 -0
- package/.turbo/turbo-lint.log +5 -0
- package/.turbo/turbo-test-silent.log +43 -0
- package/.turbo/turbo-test.log +1612 -0
- package/CHANGELOG.md +385 -13
- package/README.md +4 -4
- package/dist/cli/domain/registry.js +5 -5
- package/dist/cli/facade/dev.js +1 -1
- package/dist/cli/facade/publish.js +1 -1
- package/dist/components/oc-client/_package/package.json +4 -4
- package/dist/components/oc-client/_package/server.js +1 -1
- package/dist/components/oc-client/_package/src/oc-client.js +7 -133
- package/dist/components/oc-client/_package/src/oc-client.min.js +1 -15
- package/dist/components/oc-client/_package/src/oc-client.min.map +1 -1
- package/dist/components/oc-client/package.json +1 -1
- package/dist/components/oc-client/src/oc-client.js +7 -133
- package/dist/components/oc-client/src/oc-client.min.js +1 -15
- package/dist/components/oc-client/src/oc-client.min.map +1 -1
- package/dist/registry/domain/components-details.js +44 -10
- package/dist/registry/domain/nested-renderer.js +1 -1
- package/dist/registry/domain/repository.js +15 -4
- package/dist/registry/domain/url-builder.js +1 -1
- package/dist/registry/domain/validators/registry-configuration.js +3 -4
- package/dist/registry/routes/component-info.js +1 -1
- package/dist/registry/routes/helpers/format-error-stack.js +0 -31
- package/dist/registry/routes/helpers/get-component.js +37 -26
- package/dist/registry/routes/index.js +1 -1
- package/dist/registry/routes/validate.js +1 -1
- package/dist/registry/views/partials/components-list.js +1 -1
- package/dist/registry/views/static/index.d.ts +1 -1
- package/dist/registry/views/static/index.js +39 -5
- package/dist/registry/views/static/style.d.ts +1 -1
- package/dist/registry/views/static/style.js +20 -16
- package/dist/utils/clean-require.js +1 -1
- package/dist/utils/module-exists.js +1 -1
- package/package.json +121 -128
- package/tsconfig.json +33 -33
- package/.editorconfig +0 -9
- package/.github/ISSUE_TEMPLATE.md +0 -29
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -21
- package/.github/workflows/node.js.yml +0 -29
- package/.nvmrc +0 -1
- package/.prettierrc +0 -8
- package/.yarnrc.yml +0 -1
- package/AGENTS.md +0 -58
- package/CONTRIBUTING.md +0 -68
- package/LICENSE +0 -20
- package/biome.json +0 -52
- package/lefthook.yml +0 -5
- package/logo-type.png +0 -0
- package/logo.png +0 -0
|
@@ -0,0 +1,1612 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> oc@0.50.47 test
|
|
4
|
+
> npm run build && node tasks/mochaTest.js
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
> oc@0.50.47 prebuild
|
|
8
|
+
> rimraf dist
|
|
9
|
+
|
|
10
|
+
⠙[1G[0K
|
|
11
|
+
> oc@0.50.47 build
|
|
12
|
+
> npm run lint && tsc && node tasks/build.js
|
|
13
|
+
|
|
14
|
+
⠙[1G[0K
|
|
15
|
+
> oc@0.50.47 lint
|
|
16
|
+
> npx @biomejs/biome check preview src test tasks
|
|
17
|
+
|
|
18
|
+
⠙[1G[0K⠹[1G[0K[0m[34mChecked [0m[0m[34m128[0m[0m[34m [0m[0m[34mfiles[0m[0m[34m in [0m[0m[34m26[0m[0m[2m[34mms[0m[0m[34m.[0m[0m[34m No fixes applied.[0m
|
|
19
|
+
⠙[1G[0K⠙[1G[0K[0m[32mBuilding client[39m[0m
|
|
20
|
+
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/src/components/oc-client/
|
|
21
|
+
[0m[32mClient has been built and packaged[39m[0m 👍
|
|
22
|
+
⠙[1G[0Kcompiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/components/circular-json-error
|
|
23
|
+
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/components/container-with-multiple-nested
|
|
24
|
+
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/components/container-with-nested
|
|
25
|
+
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/components/empty
|
|
26
|
+
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/components/hello-world
|
|
27
|
+
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/components/hello-world-custom-cookies
|
|
28
|
+
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/components/hello-world-custom-headers
|
|
29
|
+
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/components/jade-filters
|
|
30
|
+
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/components/language
|
|
31
|
+
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/components/lodash-component
|
|
32
|
+
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/components/no-containers
|
|
33
|
+
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/components/welcome
|
|
34
|
+
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/components/welcome-with-optional-parameters
|
|
35
|
+
[0m[32mTest components packaged[39m[0m 👍
|
|
36
|
+
|
|
37
|
+
[0m[0m
|
|
38
|
+
[0m The targz dependency[0m
|
|
39
|
+
[0m when compressing a folder with targz[0m
|
|
40
|
+
[32m [32m✔[39m[0m[90m should create the file[0m
|
|
41
|
+
[0m when decompressing the created file[0m
|
|
42
|
+
[32m [32m✔[39m[0m[90m should throw no error[0m
|
|
43
|
+
[32m [32m✔[39m[0m[90m should contain the files[0m
|
|
44
|
+
|
|
45
|
+
[0m cli : domain : clean[0m
|
|
46
|
+
[0m when fetching the list of folders to clean[0m
|
|
47
|
+
[0m happy path[0m
|
|
48
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
49
|
+
[32m [32m✔[39m[0m[90m should return the list[0m
|
|
50
|
+
[0m getComponentsByDir error[0m
|
|
51
|
+
[32m [32m✔[39m[0m[90m should return error[0m
|
|
52
|
+
[0m when removing the folders to clean[0m
|
|
53
|
+
[0m happy path[0m
|
|
54
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
55
|
+
[32m [32m✔[39m[0m[90m should remove all the folders[0m
|
|
56
|
+
[0m fs.remove error[0m
|
|
57
|
+
[32m [32m✔[39m[0m[90m should return the error[0m
|
|
58
|
+
[32m [32m✔[39m[0m[90m should try removing all the folders[0m
|
|
59
|
+
|
|
60
|
+
[0m cli : domain : get-components-by-dir[0m
|
|
61
|
+
[0m when getting components from dir[0m
|
|
62
|
+
[32m [32m✔[39m[0m[90m should not error[0m
|
|
63
|
+
[32m [32m✔[39m[0m[90m should get the correct list[0m
|
|
64
|
+
[0m when reading a broken package.json[0m
|
|
65
|
+
[32m [32m✔[39m[0m[90m should not error[0m
|
|
66
|
+
[32m [32m✔[39m[0m[90m should get the correct list[0m
|
|
67
|
+
[0m when finds no components[0m
|
|
68
|
+
[32m [32m✔[39m[0m[90m should not error[0m
|
|
69
|
+
[32m [32m✔[39m[0m[90m should get an empty list[0m
|
|
70
|
+
[0m when components are filtered[0m
|
|
71
|
+
[32m [32m✔[39m[0m[90m should not error[0m
|
|
72
|
+
[32m [32m✔[39m[0m[90m should get an the filtered list[0m
|
|
73
|
+
|
|
74
|
+
[0m cli : domain : get-mocked-plugins[0m
|
|
75
|
+
[0m when setting up mocked plugins[0m
|
|
76
|
+
[0m when componentsDir parameter is undefined[0m
|
|
77
|
+
[32m [32m✔[39m[0m[90m should use . as default[0m
|
|
78
|
+
[0m when componentsDir parameter is omitted[0m
|
|
79
|
+
[32m [32m✔[39m[0m[90m should use . as default[0m
|
|
80
|
+
[0m when oc.json is in both root and component folder[0m
|
|
81
|
+
[32m [32m✔[39m[0m[90m should return plugins from the provided components folder config[0m
|
|
82
|
+
[0m when oc.json is missing[0m
|
|
83
|
+
[32m [32m✔[39m[0m[90m should return an empty array[0m
|
|
84
|
+
[0m when no plugins are specified[0m
|
|
85
|
+
[32m [32m✔[39m[0m[90m should return an empty array[0m
|
|
86
|
+
[0m when a static plugin is specified[0m
|
|
87
|
+
[32m [32m✔[39m[0m[90m should return the static plugin[0m
|
|
88
|
+
[32m [32m✔[39m[0m[90m should set up the execute method to return the specified value[0m
|
|
89
|
+
[0m when a dynamic plugin with a function signature is specified[0m
|
|
90
|
+
[32m [32m✔[39m[0m[90m should return the dynamic plugin[0m
|
|
91
|
+
[32m [32m✔[39m[0m[90m should set up the execute method to run the module[0m
|
|
92
|
+
[0m when a dynamic plugin with an object signature is specified[0m
|
|
93
|
+
[32m [32m✔[39m[0m[90m should return the dynamic plugin[0m
|
|
94
|
+
[32m [32m✔[39m[0m[90m should set up the execute method to run the module[0m
|
|
95
|
+
[0m when a dynamic plugin is specified and the referenced file is missing[0m
|
|
96
|
+
[32m [32m✔[39m[0m[90m should log an error[0m
|
|
97
|
+
[32m [32m✔[39m[0m[90m should omit the broken plugin from the results[0m
|
|
98
|
+
[0m when a dynamic plugin is specified and the module is not a function[0m
|
|
99
|
+
[32m [32m✔[39m[0m[90m should log an error[0m
|
|
100
|
+
[32m [32m✔[39m[0m[90m should omit the broken plugin from the results[0m
|
|
101
|
+
|
|
102
|
+
[0m cli : domain : handle-dependencies : ensure-compiler-is-declared-as-devDependency[0m
|
|
103
|
+
[0m when compiler is declared as devDependency[0m
|
|
104
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
105
|
+
[32m [32m✔[39m[0m[90m should return the compiler dependency[0m
|
|
106
|
+
[0m when compiler is not declared as devDependency[0m
|
|
107
|
+
[32m [32m✔[39m[0m[90m should return the error[0m
|
|
108
|
+
|
|
109
|
+
[0m cli : domain : handle-dependencies : get-compiler[0m
|
|
110
|
+
[0m when compiler is already installed inside the component's folder[0m
|
|
111
|
+
[32m [32m✔[39m[0m[90m should try to require it from the component's path[0m
|
|
112
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
113
|
+
[32m [32m✔[39m[0m[90m should not try to install it[0m
|
|
114
|
+
[0m when compiler is not installed inside the component's folder[0m
|
|
115
|
+
[0m when compiler version is specified[0m
|
|
116
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
117
|
+
[32m [32m✔[39m[0m[90m should install it[0m
|
|
118
|
+
[0m when compiler version is not specified[0m
|
|
119
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
120
|
+
[32m [32m✔[39m[0m[90m should install it[0m
|
|
121
|
+
[0m when install fails[0m
|
|
122
|
+
[32m [32m✔[39m[0m[90m should return the error[0m
|
|
123
|
+
|
|
124
|
+
[0m cli : domain : handle-dependencies - get-missing-dependencies[0m
|
|
125
|
+
[0m When dependencies: {"lodash":"1.2.3","underscore":""} and installed: {"lodash":true,"underscore":false}[0m
|
|
126
|
+
[32m [32m✔[39m[0m[90m should output ["underscore@latest"][0m
|
|
127
|
+
[32m [32m✔[39m[0m[90m should resolve the dependency relative to where the oc cli is running[0m
|
|
128
|
+
[0m When dependencies: {"lodash":"1.2.3","underscore":"4.5.6"} and installed: {"lodash":true,"underscore":false}[0m
|
|
129
|
+
[32m [32m✔[39m[0m[90m should output ["underscore@4.5.6"][0m
|
|
130
|
+
[32m [32m✔[39m[0m[90m should resolve the dependency relative to where the oc cli is running[0m
|
|
131
|
+
[0m When dependencies: {"lodash":"1.2.3","underscore":""} and installed: {"lodash":true,"underscore":true}[0m
|
|
132
|
+
[32m [32m✔[39m[0m[90m should output [][0m
|
|
133
|
+
[32m [32m✔[39m[0m[90m should resolve the dependency relative to where the oc cli is running[0m
|
|
134
|
+
|
|
135
|
+
[0m cli : domain : handle-dependencies : install-compiler[0m
|
|
136
|
+
[0m when succeeds[0m
|
|
137
|
+
[32m [32m✔[39m[0m[90m should run npm install with correct parameters[0m
|
|
138
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
139
|
+
[32m [32m✔[39m[0m[90m should return the compiler[0m
|
|
140
|
+
[32m [32m✔[39m[0m[90m should log progress[0m
|
|
141
|
+
[0m when install fails[0m
|
|
142
|
+
[32m [32m✔[39m[0m[90m should return an error[0m
|
|
143
|
+
[32m [32m✔[39m[0m[90m should log progress[0m
|
|
144
|
+
[0m when install succeeds but validation fails[0m
|
|
145
|
+
[32m [32m✔[39m[0m[90m should return an error[0m
|
|
146
|
+
[32m [32m✔[39m[0m[90m should log progress[0m
|
|
147
|
+
|
|
148
|
+
[0m cli : domain : handle-dependencies : install-missing-dependencies[0m
|
|
149
|
+
[0m when there is no missing dependency[0m
|
|
150
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
151
|
+
[32m [32m✔[39m[0m[90m should not install anything[0m
|
|
152
|
+
[0m when there are missing dependencies and install succeeds[0m
|
|
153
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
154
|
+
[32m [32m✔[39m[0m[90m should install the missing dependencies[0m
|
|
155
|
+
[32m [32m✔[39m[0m[90m should log progress[0m
|
|
156
|
+
[0m when there are missing dependencies and install fails[0m
|
|
157
|
+
[32m [32m✔[39m[0m[90m should return the error[0m
|
|
158
|
+
[32m [32m✔[39m[0m[90m should log progress[0m
|
|
159
|
+
[0m when there are missing dependencies and install succeeds but the dependencies are still not requireable[0m
|
|
160
|
+
[32m [32m✔[39m[0m[90m should return the error[0m
|
|
161
|
+
[32m [32m✔[39m[0m[90m should log progress[0m
|
|
162
|
+
|
|
163
|
+
[0m cli : domain : handle-dependencies : require-template[0m
|
|
164
|
+
[0m when requiring template[0m
|
|
165
|
+
[0m when module not found[0m
|
|
166
|
+
[32m [32m✔[39m[0m[90m should try requiring from component folder first[0m
|
|
167
|
+
[32m [32m✔[39m[0m[90m should try requiring it as absolute as second attempt[0m
|
|
168
|
+
[32m [32m✔[39m[0m[90m should try requiring it relatively to the oc runtime as third attempt[0m
|
|
169
|
+
[32m [32m✔[39m[0m[90m should try requiring it relatively to the oc cli as fourth attempt[0m
|
|
170
|
+
[32m [32m✔[39m[0m[90m should then throw an exeption[0m
|
|
171
|
+
[0m when template is legacy (jade)[0m
|
|
172
|
+
[32m [32m✔[39m[0m[90m should require the oc-template-jade instead[0m
|
|
173
|
+
[32m [32m✔[39m[0m[90m should return the template[0m
|
|
174
|
+
[0m when template is legacy (handlebars)[0m
|
|
175
|
+
[32m [32m✔[39m[0m[90m should require the oc-template-handlebars instead[0m
|
|
176
|
+
[32m [32m✔[39m[0m[90m should return the template[0m
|
|
177
|
+
[0m when requiring a compiler (oc-template-react)[0m
|
|
178
|
+
[32m [32m✔[39m[0m[90m should require the oc-template-react-compiler[0m
|
|
179
|
+
[32m [32m✔[39m[0m[90m should return the template[0m
|
|
180
|
+
[0m when module found in the component's folder[0m
|
|
181
|
+
[0m when the template is valid[0m
|
|
182
|
+
[32m [32m✔[39m[0m[90m should return the template[0m
|
|
183
|
+
[0m when the template is not valid[0m
|
|
184
|
+
[32m [32m✔[39m[0m[90m should throw an error[0m
|
|
185
|
+
|
|
186
|
+
[0m cli : domain : handle-dependencies[0m
|
|
187
|
+
[0m happy path[0m
|
|
188
|
+
[0m when packaging[0m
|
|
189
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
190
|
+
[32m [32m✔[39m[0m[90m should return modules plus the node.js core modules[0m
|
|
191
|
+
[32m [32m✔[39m[0m[90m should return templates[0m
|
|
192
|
+
[32m [32m✔[39m[0m[90m should log progress[0m
|
|
193
|
+
[32m [32m✔[39m[0m[90m should make sure compilers are declared as devDependencies[0m
|
|
194
|
+
[32m [32m✔[39m[0m[90m should fetch the compilers[0m
|
|
195
|
+
[32m [32m✔[39m[0m[90m should install the dependencies if missing[0m
|
|
196
|
+
[0m when in dev mode[0m
|
|
197
|
+
[32m [32m✔[39m[0m[90m should not install the dependencies if missing[0m
|
|
198
|
+
|
|
199
|
+
[0m cli : domain : init-template : install-template[0m
|
|
200
|
+
[0m when succeeds[0m
|
|
201
|
+
[32m [32m✔[39m[0m[90m should spawn the right process[0m
|
|
202
|
+
[32m [32m✔[39m[0m[90m should validate the template[0m
|
|
203
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
204
|
+
[32m [32m✔[39m[0m[90m should log progress and success[0m
|
|
205
|
+
|
|
206
|
+
[0m cli : domain : init-template[0m
|
|
207
|
+
[0m happy path[0m
|
|
208
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
209
|
+
[32m [32m✔[39m[0m[90m should call ensureDir with correct params[0m
|
|
210
|
+
[32m [32m✔[39m[0m[90m should call npm init with correct parameters[0m
|
|
211
|
+
[32m [32m✔[39m[0m[90m should call installTemplate with correct parameters[0m
|
|
212
|
+
[32m [32m✔[39m[0m[90m should call scaffold with correct parameters[0m
|
|
213
|
+
[32m [32m✔[39m[0m[90m should call npm install with correct parameters[0m
|
|
214
|
+
[0m when component folder creation fails[0m
|
|
215
|
+
[32m [32m✔[39m[0m[90m should return an error[0m
|
|
216
|
+
[0m when npm init fails[0m
|
|
217
|
+
[32m [32m✔[39m[0m[90m should return an error[0m
|
|
218
|
+
[0m when template compiler installation fails[0m
|
|
219
|
+
[32m [32m✔[39m[0m[90m should return an error[0m
|
|
220
|
+
[0m when template compiler installation fails[0m
|
|
221
|
+
[32m [32m✔[39m[0m[90m should return an error[0m
|
|
222
|
+
|
|
223
|
+
[0m cli : domain : mock[0m
|
|
224
|
+
[0m when mocking a static plugin[0m
|
|
225
|
+
[32m [32m✔[39m[0m[90m should add mock to oc.json[0m
|
|
226
|
+
[0m when mocking a static plugin using a bool value[0m
|
|
227
|
+
[32m [32m✔[39m[0m[90m should add mock to oc.json[0m
|
|
228
|
+
[0m when mocking a dynamic plugin[0m
|
|
229
|
+
[32m [32m✔[39m[0m[90m should add mock to oc.json[0m
|
|
230
|
+
|
|
231
|
+
[0m cli : domain : ocConfig[0m
|
|
232
|
+
[0m getOcConfig[0m
|
|
233
|
+
[0m when config file exists and is valid JSON[0m
|
|
234
|
+
[32m [32m✔[39m[0m[90m should return parsed config with registries[0m
|
|
235
|
+
[32m [32m✔[39m[0m[90m should return parsed config with development plugins[0m
|
|
236
|
+
[32m [32m✔[39m[0m[90m should return parsed config with fallback settings[0m
|
|
237
|
+
[32m [32m✔[39m[0m[90m should include sourcePath in result[0m
|
|
238
|
+
[32m [32m✔[39m[0m[90m should use default config file path when no path provided[0m
|
|
239
|
+
[32m [32m✔[39m[0m[90m should use provided path when specified[0m
|
|
240
|
+
[0m when config has deprecated mocks structure[0m
|
|
241
|
+
[32m [32m✔[39m[0m[90m should merge deprecated mocks into development plugins[0m
|
|
242
|
+
[0m when config has both mocks and development plugins[0m
|
|
243
|
+
[32m [32m✔[39m[0m[90m should prioritize development plugins over deprecated mocks[0m
|
|
244
|
+
[0m when config has no registries[0m
|
|
245
|
+
[32m [32m✔[39m[0m[90m should return empty registries array[0m
|
|
246
|
+
[0m when config has no development section[0m
|
|
247
|
+
[32m [32m✔[39m[0m[90m should return empty plugins object[0m
|
|
248
|
+
[0m when config file does not exist[0m
|
|
249
|
+
[32m [32m✔[39m[0m[90m should return default config[0m
|
|
250
|
+
[0m when config file contains invalid JSON[0m
|
|
251
|
+
[32m [32m✔[39m[0m[90m should return default config[0m
|
|
252
|
+
[0m when oc.json is in both root and component folder[0m
|
|
253
|
+
[32m [32m✔[39m[0m[90m should use components folder oc.json as default[0m
|
|
254
|
+
[0m when oc.json is in root folder but not component folder[0m
|
|
255
|
+
[32m [32m✔[39m[0m[90m should use root oc.json[0m
|
|
256
|
+
[0m setOcConfig[0m
|
|
257
|
+
[0m when setting valid config[0m
|
|
258
|
+
[32m [32m✔[39m[0m[90m should write config to file[0m
|
|
259
|
+
[32m [32m✔[39m[0m[90m should use default config file path when no path provided[0m
|
|
260
|
+
[32m [32m✔[39m[0m[90m should write stringified JSON with proper formatting[0m
|
|
261
|
+
[0m when setting config with custom path[0m
|
|
262
|
+
[32m [32m✔[39m[0m[90m should use provided path[0m
|
|
263
|
+
[0m when setting config with mocks structure[0m
|
|
264
|
+
[32m [32m✔[39m[0m[90m should merge mocks into development plugins[0m
|
|
265
|
+
[0m when setting config with fallback settings[0m
|
|
266
|
+
[32m [32m✔[39m[0m[90m should preserve fallback settings[0m
|
|
267
|
+
|
|
268
|
+
[0m cli : domain : package-components[0m
|
|
269
|
+
[0m when packaging[0m
|
|
270
|
+
[0m when component is valid[0m
|
|
271
|
+
[32m [32m✔[39m[0m[90m should add sizes and correctly invoke the callback when template succeed packaging[0m
|
|
272
|
+
[0m when component parameters are not valid[0m
|
|
273
|
+
[32m [32m✔[39m[0m[90m should add version to package.json file[0m
|
|
274
|
+
[0m when component name is not valid[0m
|
|
275
|
+
[32m [32m✔[39m[0m[90m should add version to package.json file[0m
|
|
276
|
+
|
|
277
|
+
[0m cli : domain : registry[0m
|
|
278
|
+
[0m registry specified at runtime[0m
|
|
279
|
+
[32m [32m✔[39m[0m[90m should use the registry specified[0m
|
|
280
|
+
[0m when adding registry[0m
|
|
281
|
+
[0m when registry does not end with "/"[0m
|
|
282
|
+
[32m [32m✔[39m[0m[90m should append the slash when doing the request[0m
|
|
283
|
+
[32m [32m✔[39m[0m[90m should save the file with slashed url[0m
|
|
284
|
+
[0m when publishing to registry[0m
|
|
285
|
+
[0m when no credentials used[0m
|
|
286
|
+
[32m [32m✔[39m[0m[90m should do the request without authorization header[0m
|
|
287
|
+
[32m [32m✔[39m[0m[90m should do the request with user-agent including cli version and node details[0m
|
|
288
|
+
[0m when credentials used[0m
|
|
289
|
+
[32m [32m✔[39m[0m[90m should do the request with authorization header[0m
|
|
290
|
+
[32m [32m✔[39m[0m[90m should do the request with user-agent including cli version and node details[0m
|
|
291
|
+
[0m when getting preview url[0m
|
|
292
|
+
[0m when href not valid[0m
|
|
293
|
+
[32m [32m✔[39m[0m[90m should show error message[0m
|
|
294
|
+
[0m when href = /component[0m
|
|
295
|
+
[32m [32m✔[39m[0m[90m href should be /component/~preview/[0m
|
|
296
|
+
(node:98422) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
|
|
297
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
298
|
+
[0m when href = /component/1.X.X[0m
|
|
299
|
+
[32m [32m✔[39m[0m[90m href should be /component/1.X.X/~preview/[0m
|
|
300
|
+
[0m when href = /component?hello=world[0m
|
|
301
|
+
[32m [32m✔[39m[0m[90m href should be /component/~preview/?hello=world[0m
|
|
302
|
+
[0m when href = /component/?hello=world[0m
|
|
303
|
+
[32m [32m✔[39m[0m[90m href should be /component/~preview/?hello=world[0m
|
|
304
|
+
[0m when href = /component/1.X.X?hello=world[0m
|
|
305
|
+
[32m [32m✔[39m[0m[90m href should be /component/1.X.X/~preview/?hello=world[0m
|
|
306
|
+
[0m when href = /component/1.X.X/?hello=world[0m
|
|
307
|
+
[32m [32m✔[39m[0m[90m href should be /component/1.X.X/~preview/?hello=world[0m
|
|
308
|
+
|
|
309
|
+
[0m cli : domain : url-parser[0m
|
|
310
|
+
[0m when parsing http://www.registry.com/api/v2/component-name[0m
|
|
311
|
+
[32m [32m✔[39m[0m[90m name should be component-name[0m
|
|
312
|
+
[32m [32m✔[39m[0m[90m version should be blank[0m
|
|
313
|
+
[32m [32m✔[39m[0m[90m registryUrl should be http://www.registry.com/api/v2/[0m
|
|
314
|
+
[32m [32m✔[39m[0m[90m parameters should be {}[0m
|
|
315
|
+
[32m [32m✔[39m[0m[90m clientHref should be http://www.registry.com/api/v2/oc-client/client.js[0m
|
|
316
|
+
[0m when parsing http://www.registry.com/component-name/~1.0.0/?hello=world[0m
|
|
317
|
+
[32m [32m✔[39m[0m[90m name should be component-name[0m
|
|
318
|
+
[32m [32m✔[39m[0m[90m version should be ~1.0.0[0m
|
|
319
|
+
[32m [32m✔[39m[0m[90m registryUrl should be http://www.registry.com/[0m
|
|
320
|
+
[32m [32m✔[39m[0m[90m parameters should be { hello: 'world'}[0m
|
|
321
|
+
[32m [32m✔[39m[0m[90m clientHref should be http://www.registry.com/oc-client/client.js[0m
|
|
322
|
+
[0m when parsing http://www.registry.com/12345/~1.0.0?hello=world[0m
|
|
323
|
+
[32m [32m✔[39m[0m[90m name should be 12345[0m
|
|
324
|
+
[32m [32m✔[39m[0m[90m version should be ~1.0.0[0m
|
|
325
|
+
[32m [32m✔[39m[0m[90m registryUrl should be http://www.registry.com/[0m
|
|
326
|
+
[32m [32m✔[39m[0m[90m parameters should be { hello: 'world'}[0m
|
|
327
|
+
[32m [32m✔[39m[0m[90m clientHref should be http://www.registry.com/oc-client/client.js[0m
|
|
328
|
+
|
|
329
|
+
[0m cli : domain : watch[0m
|
|
330
|
+
[0m when a file from a component changes[0m
|
|
331
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
332
|
+
[32m [32m✔[39m[0m[90m should return the fileName[0m
|
|
333
|
+
[32m [32m✔[39m[0m[90m should return the component folder[0m
|
|
334
|
+
[0m when a file from a component whose name matches another component changes[0m
|
|
335
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
336
|
+
[32m [32m✔[39m[0m[90m should return the fileName[0m
|
|
337
|
+
[32m [32m✔[39m[0m[90m should return the component folder[0m
|
|
338
|
+
[0m when a file from a component on Windows-like path changes[0m
|
|
339
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
340
|
+
[32m [32m✔[39m[0m[90m should return the fileName[0m
|
|
341
|
+
[32m [32m✔[39m[0m[90m should return the component folder[0m
|
|
342
|
+
|
|
343
|
+
[0m cli : facade : clean[0m
|
|
344
|
+
[0m when cleaning folder[0m
|
|
345
|
+
[0m when folder is already clean[0m
|
|
346
|
+
[32m [32m✔[39m[0m[90m should show a message[0m
|
|
347
|
+
[32m [32m✔[39m[0m[90m shouldn't call local.remove[0m
|
|
348
|
+
[0m when folder needs cleaning and --yes flag passed down[0m
|
|
349
|
+
[32m [32m✔[39m[0m[90m should show a message before removing[0m
|
|
350
|
+
[32m [32m✔[39m[0m[90m should remove the folder[0m
|
|
351
|
+
[32m [32m✔[39m[0m[90m should show a message when done[0m
|
|
352
|
+
[0m when folder needs cleaning and no --yes flag passed down and users says yes[0m
|
|
353
|
+
[32m [32m✔[39m[0m[90m should show a message before removing[0m
|
|
354
|
+
[32m [32m✔[39m[0m[90m should prompt the user to confirm[0m
|
|
355
|
+
[32m [32m✔[39m[0m[90m should then remove the folder[0m
|
|
356
|
+
[32m [32m✔[39m[0m[90m should show a message when done[0m
|
|
357
|
+
[0m when folder needs cleaning and no --yes flag passed down and users says no[0m
|
|
358
|
+
[32m [32m✔[39m[0m[90m should show a message before removing[0m
|
|
359
|
+
[32m [32m✔[39m[0m[90m should prompt the user to confirm[0m
|
|
360
|
+
[32m [32m✔[39m[0m[90m shouldn't remove the folder[0m
|
|
361
|
+
[0m when removing causes an error[0m
|
|
362
|
+
[32m [32m✔[39m[0m[90m should show a message before removing[0m
|
|
363
|
+
[32m [32m✔[39m[0m[90m should try removing the folder[0m
|
|
364
|
+
[32m [32m✔[39m[0m[90m should show an error message at the end[0m
|
|
365
|
+
|
|
366
|
+
[0m cli : facade : dev[0m
|
|
367
|
+
[0m when running a dev version of the registry[0m
|
|
368
|
+
[0m when the directory is not found[0m
|
|
369
|
+
[32m [32m✔[39m[0m[90m should show an error[0m
|
|
370
|
+
[0m when the directory does not contain any valid component[0m
|
|
371
|
+
[32m [32m✔[39m[0m[90m should show an error[0m
|
|
372
|
+
[0m when testing livereload refresh sequencing bugfix[0m
|
|
373
|
+
[32m [32m✔[39m[0m[90m should call refreshLiveReload AFTER packageComponents completes[0m
|
|
374
|
+
[32m [32m✔[39m[0m[90m should handle both single component and all components refresh sequencing[0m
|
|
375
|
+
|
|
376
|
+
[0m cli : facade : init[0m
|
|
377
|
+
[0m when initialising a new component[0m
|
|
378
|
+
[0m when the component is an empty string[0m
|
|
379
|
+
[32m [32m✔[39m[0m[90m should show an error[0m
|
|
380
|
+
[0m when the component has a non valid name[0m
|
|
381
|
+
[32m [32m✔[39m[0m[90m should show an error[0m
|
|
382
|
+
[0m when the template is of a non valid type[0m
|
|
383
|
+
[32m [32m✔[39m[0m[90m should show an error[0m
|
|
384
|
+
[0m when an error happens[0m
|
|
385
|
+
[32m [32m✔[39m[0m[90m should show an error[0m
|
|
386
|
+
[0m when the component has relative path[0m
|
|
387
|
+
[32m [32m✔[39m[0m[90m should show a correct name in the log message[0m
|
|
388
|
+
[32m [32m✔[39m[0m[90m should show a correct path in the log message[0m
|
|
389
|
+
[0m when succeeds[0m
|
|
390
|
+
[32m [32m✔[39m[0m[90m should show a message[0m
|
|
391
|
+
|
|
392
|
+
[0m cli : facade : mock[0m
|
|
393
|
+
[0m when mocking plugin[0m
|
|
394
|
+
[0m when it succeeds[0m
|
|
395
|
+
[32m [32m✔[39m[0m[90m should show a confirmation message[0m
|
|
396
|
+
|
|
397
|
+
[0m cli : facade : package[0m
|
|
398
|
+
[0m before packaging a component[0m
|
|
399
|
+
[32m [32m✔[39m[0m[90m should always show a message[0m
|
|
400
|
+
[0m when packaging[0m
|
|
401
|
+
[0m when a component is not valid[0m
|
|
402
|
+
[32m [32m✔[39m[0m[90m should show an error[0m
|
|
403
|
+
[0m when a component is valid[0m
|
|
404
|
+
[32m [32m✔[39m[0m[90m should package and show success message[0m
|
|
405
|
+
[0m when creating tar.gz archive[0m
|
|
406
|
+
[32m [32m✔[39m[0m[90m should not compress when option set to false[0m
|
|
407
|
+
[0m when compression is successful[0m
|
|
408
|
+
[32m [32m✔[39m[0m[90m should show a message for success[0m
|
|
409
|
+
[0m when compression fails[0m
|
|
410
|
+
[32m [32m✔[39m[0m[90m should show a message for failure[0m
|
|
411
|
+
|
|
412
|
+
[0m cli : facade : preview[0m
|
|
413
|
+
[0m when previewing not valid component[0m
|
|
414
|
+
[32m [32m✔[39m[0m[90m should not open any preview[0m
|
|
415
|
+
[32m [32m✔[39m[0m[90m should show error message[0m
|
|
416
|
+
[0m when previewing valid component[0m
|
|
417
|
+
[32m [32m✔[39m[0m[90m should open /component/~preview/[0m
|
|
418
|
+
|
|
419
|
+
[0m cli : facade : publish[0m
|
|
420
|
+
[0m when publishing component[0m
|
|
421
|
+
[0m when api is not valid[0m
|
|
422
|
+
[32m [32m✔[39m[0m[90m should show an error[0m
|
|
423
|
+
[0m when api is valid[0m
|
|
424
|
+
[32m [32m✔[39m[0m[90m should show a message[0m
|
|
425
|
+
compiling component /Users/Ricardo.Agullo/Work/oc/packages/oc/test/fixtures/components/hello-world
|
|
426
|
+
[32m [32m✔[39m[0m[90m should take precedence over the registries set through oc.json[0m
|
|
427
|
+
[0m when packaging[0m
|
|
428
|
+
[0m when a component is not valid[0m
|
|
429
|
+
[32m [32m✔[39m[0m[90m should show an error[0m
|
|
430
|
+
[0m when a component is valid[0m
|
|
431
|
+
[0m when creating tar.gz archive[0m
|
|
432
|
+
[32m [32m✔[39m[0m[90m should show a message[0m
|
|
433
|
+
[0m when publishing[0m
|
|
434
|
+
[32m [32m✔[39m[0m[90m should show a message[0m
|
|
435
|
+
[32m [32m✔[39m[0m[90m should publish to all registries[0m
|
|
436
|
+
[0m when a generic error happens[0m
|
|
437
|
+
[32m [32m✔[39m[0m[90m should show an error[0m
|
|
438
|
+
[0m when a generic error happens from the api[0m
|
|
439
|
+
[32m [32m✔[39m[0m[90m should show an error[0m
|
|
440
|
+
[0m when using an old cli[0m
|
|
441
|
+
[32m [32m✔[39m[0m[90m should show an error[0m
|
|
442
|
+
[0m when using an old node version[0m
|
|
443
|
+
[32m [32m✔[39m[0m[90m should show an error[0m
|
|
444
|
+
[0m when registry requires authentication[0m
|
|
445
|
+
[32m [32m✔[39m[0m[90m should prompt for credentials[0m
|
|
446
|
+
[0m when credentials are prepopulated[0m
|
|
447
|
+
[32m [32m✔[39m[0m[90m should not prompt for credentials[0m
|
|
448
|
+
[0m when it succeeds[0m
|
|
449
|
+
[32m [32m✔[39m[0m[90m should show a message[0m
|
|
450
|
+
[32m [32m✔[39m[0m[90m should remove the compressed package[0m
|
|
451
|
+
[0m when skipping packaging[0m
|
|
452
|
+
[32m [32m✔[39m[0m[90m should publish the package to all registries[0m
|
|
453
|
+
[32m [32m✔[39m[0m[90m should skip packaging[0m
|
|
454
|
+
[32m [32m✔[39m[0m[90m should show an error message if the package folder does not exist[0m
|
|
455
|
+
|
|
456
|
+
[0m cli : facade : registry : add[0m
|
|
457
|
+
[0m when adding a not valid registry[0m
|
|
458
|
+
[32m [32m✔[39m[0m[90m should show the error[0m
|
|
459
|
+
[0m when adding a valid registry[0m
|
|
460
|
+
[32m [32m✔[39m[0m[90m should show a confirmation message[0m
|
|
461
|
+
|
|
462
|
+
[0m cli : facade : registry : ls[0m
|
|
463
|
+
[0m when no registries linked to the app[0m
|
|
464
|
+
[32m [32m✔[39m[0m[90m should introduce the list of registries[0m
|
|
465
|
+
[32m [32m✔[39m[0m[90m should log an error[0m
|
|
466
|
+
[0m when registries linked to the app[0m
|
|
467
|
+
[32m [32m✔[39m[0m[90m should introduce the list of registries[0m
|
|
468
|
+
[32m [32m✔[39m[0m[90m should list the linked registries[0m
|
|
469
|
+
|
|
470
|
+
[0m cli : facade : registry : remove[0m
|
|
471
|
+
[0m when removing a registry and having some problem removing it[0m
|
|
472
|
+
[32m [32m✔[39m[0m[90m should show the error[0m
|
|
473
|
+
[0m when removing a valid registry[0m
|
|
474
|
+
[32m [32m✔[39m[0m[90m should show a confirmation message[0m
|
|
475
|
+
|
|
476
|
+
[0m cli : facade : validate[0m
|
|
477
|
+
[0m when validating a component[0m
|
|
478
|
+
[0m when validation succeeds[0m
|
|
479
|
+
[32m [32m✔[39m[0m[90m should get registries[0m
|
|
480
|
+
[32m [32m✔[39m[0m[90m should package the component[0m
|
|
481
|
+
[32m [32m✔[39m[0m[90m should validate against registry[0m
|
|
482
|
+
[32m [32m✔[39m[0m[90m should log success message[0m
|
|
483
|
+
[0m when skipPackage option is used[0m
|
|
484
|
+
[32m [32m✔[39m[0m[90m should not package the component[0m
|
|
485
|
+
[32m [32m✔[39m[0m[90m should validate against registry[0m
|
|
486
|
+
[0m when validation fails[0m
|
|
487
|
+
[32m [32m✔[39m[0m[90m should throw an error[0m
|
|
488
|
+
[0m when multiple registries are provided[0m
|
|
489
|
+
[32m [32m✔[39m[0m[90m should not call registry.get[0m
|
|
490
|
+
[32m [32m✔[39m[0m[90m should validate against both registries[0m
|
|
491
|
+
|
|
492
|
+
[0m cli : programmatic-api[0m
|
|
493
|
+
[0m cmd: cli.dev[0m
|
|
494
|
+
[32m [32m✔[39m[0m[90m should be function[0m
|
|
495
|
+
[32m [32m✔[39m[0m[90m should correctly wrap the related facade[0m
|
|
496
|
+
[0m cmd: cli.init[0m
|
|
497
|
+
[32m [32m✔[39m[0m[90m should be function[0m
|
|
498
|
+
[32m [32m✔[39m[0m[90m should correctly wrap the related facade[0m
|
|
499
|
+
[0m cmd: cli.mock[0m
|
|
500
|
+
[32m [32m✔[39m[0m[90m should be function[0m
|
|
501
|
+
[32m [32m✔[39m[0m[90m should correctly wrap the related facade[0m
|
|
502
|
+
[0m cmd: cli.package[0m
|
|
503
|
+
[32m [32m✔[39m[0m[90m should be function[0m
|
|
504
|
+
[32m [32m✔[39m[0m[90m should correctly wrap the related facade[0m
|
|
505
|
+
[0m cmd: cli.publish[0m
|
|
506
|
+
[32m [32m✔[39m[0m[90m should be function[0m
|
|
507
|
+
[32m [32m✔[39m[0m[90m should correctly wrap the related facade[0m
|
|
508
|
+
[0m cmd: cli.preview[0m
|
|
509
|
+
[32m [32m✔[39m[0m[90m should be function[0m
|
|
510
|
+
[32m [32m✔[39m[0m[90m should correctly wrap the related facade[0m
|
|
511
|
+
[0m cmd: cli.registry.add[0m
|
|
512
|
+
[32m [32m✔[39m[0m[90m should be function[0m
|
|
513
|
+
[32m [32m✔[39m[0m[90m should correctly wrap the related facade[0m
|
|
514
|
+
[0m cmd: cli.registry.ls[0m
|
|
515
|
+
[32m [32m✔[39m[0m[90m should be function[0m
|
|
516
|
+
[32m [32m✔[39m[0m[90m should correctly wrap the related facade[0m
|
|
517
|
+
[0m cmd: cli.registry.remove[0m
|
|
518
|
+
[32m [32m✔[39m[0m[90m should be function[0m
|
|
519
|
+
[32m [32m✔[39m[0m[90m should correctly wrap the related facade[0m
|
|
520
|
+
|
|
521
|
+
[0m cli : validate-command : valid[0m
|
|
522
|
+
[0m given "registry add"[0m
|
|
523
|
+
[32m [32m✔[39m[0m[90m "registry" should be a valid command[0m
|
|
524
|
+
[0m given "registry add"[0m
|
|
525
|
+
[32m [32m✔[39m[0m[90m "add" should be a valid command[0m
|
|
526
|
+
[0m given "registry ls"[0m
|
|
527
|
+
[32m [32m✔[39m[0m[90m "ls" should be a valid command[0m
|
|
528
|
+
|
|
529
|
+
[0m cli : validate-command : invalid[0m
|
|
530
|
+
[0m given "foo bar"[0m
|
|
531
|
+
[32m [32m✔[39m[0m[90m "foo" should be an invalid command[0m
|
|
532
|
+
[0m given "registry bar"[0m
|
|
533
|
+
[32m [32m✔[39m[0m[90m "bar" should be an invalid command[0m
|
|
534
|
+
|
|
535
|
+
[0m registry : app-start[0m
|
|
536
|
+
[0m when registry starting[0m
|
|
537
|
+
[0m when not in local mode[0m
|
|
538
|
+
[0m when oc-client found on library[0m
|
|
539
|
+
[32m [32m✔[39m[0m[90m should not publish it[0m
|
|
540
|
+
[0m when oc-client not found on library[0m
|
|
541
|
+
[32m [32m✔[39m[0m[90m should publish it[0m
|
|
542
|
+
|
|
543
|
+
[0m registry : domain : components-cache[0m
|
|
544
|
+
[0m when library does not contain components.json[0m
|
|
545
|
+
[0m when getting the json fails[0m
|
|
546
|
+
[32m [32m✔[39m[0m[90m should throw with the error message[0m
|
|
547
|
+
[0m when initialising the cache[0m
|
|
548
|
+
[32m [32m✔[39m[0m[90m should try fetching the components.json and check components[0m
|
|
549
|
+
[32m [32m✔[39m[0m[90m should scan for directories to fetch components and versions[0m
|
|
550
|
+
[32m [32m✔[39m[0m[90m should then save the directories' data to components.json file in cdn[0m
|
|
551
|
+
[32m [32m✔[39m[0m[90m should start the refresh loop[0m
|
|
552
|
+
[0m when library contains outdated components.json[0m
|
|
553
|
+
[0m when initialising the cache[0m
|
|
554
|
+
[32m [32m✔[39m[0m[90m should fetch the components.json[0m
|
|
555
|
+
[32m [32m✔[39m[0m[90m should verify new versions[0m
|
|
556
|
+
[32m [32m✔[39m[0m[90m should ignore corrupted versions and generate an error event[0m
|
|
557
|
+
[32m [32m✔[39m[0m[90m should scan for directories to fetch components and versions[0m
|
|
558
|
+
[32m [32m✔[39m[0m[90m should then save the directories' data to components.json file in cdn[0m
|
|
559
|
+
[32m [32m✔[39m[0m[90m should start the refresh loop[0m
|
|
560
|
+
[0m when library contains updated components.json[0m
|
|
561
|
+
[0m when initialising the cache[0m
|
|
562
|
+
[32m [32m✔[39m[0m[90m should fetch the components.json[0m
|
|
563
|
+
[32m [32m✔[39m[0m[90m should scan for directories to fetch components and versions[0m
|
|
564
|
+
[32m [32m✔[39m[0m[90m should not modify components.json[0m
|
|
565
|
+
[32m [32m✔[39m[0m[90m should use it as a source of truth[0m
|
|
566
|
+
[32m [32m✔[39m[0m[90m should start the refresh loop[0m
|
|
567
|
+
[0m when refreshing the cache[0m
|
|
568
|
+
[0m when refresh errors[0m
|
|
569
|
+
[32m [32m✔[39m[0m[90m should generate an error event[0m
|
|
570
|
+
[0m when refresh does not generate errors[0m
|
|
571
|
+
[32m [32m✔[39m[0m[90m should have started, stopped and restarted the refresh loop[0m
|
|
572
|
+
[32m [32m✔[39m[0m[90m should do list requests to cdn[0m
|
|
573
|
+
[32m [32m✔[39m[0m[90m should do write request to cdn[0m
|
|
574
|
+
[32m [32m✔[39m[0m[90m should refresh the values[0m
|
|
575
|
+
|
|
576
|
+
[0m registry : domain : components-details[0m
|
|
577
|
+
[0m get()[0m
|
|
578
|
+
[0m when details file exists on cdn[0m
|
|
579
|
+
[32m [32m✔[39m[0m[90m should not error[0m
|
|
580
|
+
[32m [32m✔[39m[0m[90m should return the details[0m
|
|
581
|
+
[32m [32m✔[39m[0m[90m should fetch the details from components-details.json[0m
|
|
582
|
+
[0m when details file does not exist on cdn[0m
|
|
583
|
+
[32m [32m✔[39m[0m[90m should return an error[0m
|
|
584
|
+
[0m refresh()[0m
|
|
585
|
+
[0m when details file exists on cdn[0m
|
|
586
|
+
[0m when details file is outdated on cdn[0m
|
|
587
|
+
[32m [32m✔[39m[0m[90m should fetch the component details for new components[0m
|
|
588
|
+
[0m when component details fetch fails[0m
|
|
589
|
+
[32m [32m✔[39m[0m[90m should return an error[0m
|
|
590
|
+
[32m [32m✔[39m[0m[90m should fire an error event[0m
|
|
591
|
+
[0m when component details fetch succeeds[0m
|
|
592
|
+
[32m [32m✔[39m[0m[90m should save the updated component details to file[0m
|
|
593
|
+
[0m when component details save fails[0m
|
|
594
|
+
[32m [32m✔[39m[0m[90m should return an error[0m
|
|
595
|
+
[32m [32m✔[39m[0m[90m should fire an error event[0m
|
|
596
|
+
[0m when component details save succeeds[0m
|
|
597
|
+
[32m [32m✔[39m[0m[90m should not error[0m
|
|
598
|
+
[32m [32m✔[39m[0m[90m should return result[0m
|
|
599
|
+
[0m when details file is up-to-date on cdn[0m
|
|
600
|
+
[32m [32m✔[39m[0m[90m should not error[0m
|
|
601
|
+
[32m [32m✔[39m[0m[90m should not save it[0m
|
|
602
|
+
[32m [32m✔[39m[0m[90m should return the result[0m
|
|
603
|
+
[0m when details file does not exist on cdn[0m
|
|
604
|
+
[32m [32m✔[39m[0m[90m should fetch the component details for new components[0m
|
|
605
|
+
[0m when component details fetch fails[0m
|
|
606
|
+
[32m [32m✔[39m[0m[90m should return an error[0m
|
|
607
|
+
[32m [32m✔[39m[0m[90m should fire an error event[0m
|
|
608
|
+
[0m when component details fetch succeeds[0m
|
|
609
|
+
[32m [32m✔[39m[0m[90m should save the updated component details to file[0m
|
|
610
|
+
[0m when component details save fails[0m
|
|
611
|
+
[32m [32m✔[39m[0m[90m should return an error[0m
|
|
612
|
+
[32m [32m✔[39m[0m[90m should fire an error event[0m
|
|
613
|
+
[0m when component details save succeeds[0m
|
|
614
|
+
[32m [32m✔[39m[0m[90m should not error[0m
|
|
615
|
+
[32m [32m✔[39m[0m[90m should return result[0m
|
|
616
|
+
|
|
617
|
+
[0m registry : domain : events-handler[0m
|
|
618
|
+
[0m when requiring it multiple times[0m
|
|
619
|
+
[32m [32m✔[39m[0m[90m should be a singleton[0m
|
|
620
|
+
[0m when firing an event that has multiple subscribers[0m
|
|
621
|
+
[32m [32m✔[39m[0m[90m should call the subscribers in the correct order[0m
|
|
622
|
+
[32m [32m✔[39m[0m[90m should call the subscribers with the event payload[0m
|
|
623
|
+
[0m when subscribing a request event using a not valid handler[0m
|
|
624
|
+
[32m [32m✔[39m[0m[90m should throw an error[0m
|
|
625
|
+
[0m when unsubscribing a request event[0m
|
|
626
|
+
[32m [32m✔[39m[0m[90m should throw an error if callback is not a function[0m
|
|
627
|
+
[32m [32m✔[39m[0m[90m should not throw an error if event name is not registered[0m
|
|
628
|
+
[32m [32m✔[39m[0m[90m should remove the specific callback but not the others[0m
|
|
629
|
+
|
|
630
|
+
[0m registry : domain : extract-package[0m
|
|
631
|
+
[0m when successfully extracting package[0m
|
|
632
|
+
[32m [32m✔[39m[0m[90m should decompress tar.gz file[0m
|
|
633
|
+
[32m [32m✔[39m[0m[90m should respond[0m
|
|
634
|
+
[0m when extracting package fails[0m
|
|
635
|
+
[32m [32m✔[39m[0m[90m should respond with error[0m
|
|
636
|
+
|
|
637
|
+
[0m registry : routes : helpers : nested-renderer[0m
|
|
638
|
+
[0m when rendering nested component[0m
|
|
639
|
+
[0m when req is not valid[0m
|
|
640
|
+
[0m when componentName not valid[0m
|
|
641
|
+
[32m [32m✔[39m[0m[90m should throw an error[0m
|
|
642
|
+
[0m when componentName empty[0m
|
|
643
|
+
[32m [32m✔[39m[0m[90m should throw an error[0m
|
|
644
|
+
[0m when requesting a not existent component[0m
|
|
645
|
+
[32m [32m✔[39m[0m[90m should return an error in the callback[0m
|
|
646
|
+
[0m when req is valid[0m
|
|
647
|
+
[0m when all params specified[0m
|
|
648
|
+
[32m [32m✔[39m[0m[90m should get the html result[0m
|
|
649
|
+
[32m [32m✔[39m[0m[90m should make correct request to renderer[0m
|
|
650
|
+
[32m [32m✔[39m[0m[90m should get no error[0m
|
|
651
|
+
[0m when minimal params specified[0m
|
|
652
|
+
[32m [32m✔[39m[0m[90m should get the html result[0m
|
|
653
|
+
[32m [32m✔[39m[0m[90m should make correct request to renderer[0m
|
|
654
|
+
[32m [32m✔[39m[0m[90m should get no error[0m
|
|
655
|
+
[0m when rendering nested components[0m
|
|
656
|
+
[0m when req is not valid[0m
|
|
657
|
+
[0m when components not valid[0m
|
|
658
|
+
[32m [32m✔[39m[0m[90m should throw an error[0m
|
|
659
|
+
[0m when components empty[0m
|
|
660
|
+
[32m [32m✔[39m[0m[90m should throw an error[0m
|
|
661
|
+
[0m when requesting not existent components[0m
|
|
662
|
+
[32m [32m✔[39m[0m[90m should return no error in the callback[0m
|
|
663
|
+
[32m [32m✔[39m[0m[90m should return error in result callback[0m
|
|
664
|
+
[0m when req is valid[0m
|
|
665
|
+
[0m when all params specified[0m
|
|
666
|
+
[32m [32m✔[39m[0m[90m should get the html result[0m
|
|
667
|
+
[32m [32m✔[39m[0m[90m should make correct request to renderer[0m
|
|
668
|
+
[32m [32m✔[39m[0m[90m should get no error[0m
|
|
669
|
+
[0m when minimal params specified[0m
|
|
670
|
+
[32m [32m✔[39m[0m[90m should get the html result[0m
|
|
671
|
+
[32m [32m✔[39m[0m[90m should make correct request to renderer[0m
|
|
672
|
+
[32m [32m✔[39m[0m[90m should get no error[0m
|
|
673
|
+
|
|
674
|
+
[0m registry : domain : options-sanitiser[0m
|
|
675
|
+
[0m when options is empty[0m
|
|
676
|
+
[32m [32m✔[39m[0m[90m should set prefix to "/"[0m[31m (177ms)[0m
|
|
677
|
+
[32m [32m✔[39m[0m[90m should set tempDir to "./temp/"[0m[31m (84ms)[0m
|
|
678
|
+
[32m [32m✔[39m[0m[90m should set hotReloading to false[0m[33m (66ms)[0m
|
|
679
|
+
[32m [32m✔[39m[0m[90m should set verbosity to 0[0m[33m (65ms)[0m
|
|
680
|
+
[32m [32m✔[39m[0m[90m should set customHeadersToSkipOnWeakVersion to [][0m[33m (63ms)[0m
|
|
681
|
+
[32m [32m✔[39m[0m[90m should set timeout to 120000[0m[31m (82ms)[0m
|
|
682
|
+
[0m when verbosity is provided[0m
|
|
683
|
+
[32m [32m✔[39m[0m[90m should leave value untouched[0m[33m (60ms)[0m
|
|
684
|
+
[0m customHeadersToSkipOnWeakVersion[0m
|
|
685
|
+
[0m when it contains valid elements[0m
|
|
686
|
+
[32m [32m✔[39m[0m[90m should convert the array elements to lower case[0m[33m (62ms)[0m
|
|
687
|
+
[0m fallbackRegistryUrl[0m
|
|
688
|
+
[0m when fallbackRegistryUrl doesn't contain / at the end of url[0m
|
|
689
|
+
[32m [32m✔[39m[0m[90m should add `/` at the end of url[0m[33m (57ms)[0m
|
|
690
|
+
[0m when fallbackRegistryUrl contains `/` at the end of url[0m
|
|
691
|
+
[32m [32m✔[39m[0m[90m should not modify fallbackRegistryUrl url[0m[33m (57ms)[0m
|
|
692
|
+
[0m prefix and baseUrl sanitization[0m
|
|
693
|
+
[32m [32m✔[39m[0m[90m should support various scenarios correctly[0m[31m (745ms)[0m
|
|
694
|
+
[0m when pollingInterval[0m
|
|
695
|
+
[0m is provided[0m
|
|
696
|
+
[32m [32m✔[39m[0m[90m should not modify it[0m[33m (54ms)[0m
|
|
697
|
+
[0m is not provided[0m
|
|
698
|
+
[32m [32m✔[39m[0m[90m should initialize it as 5000[0m[33m (56ms)[0m
|
|
699
|
+
[0m when templates[0m
|
|
700
|
+
[0m is provided[0m
|
|
701
|
+
[32m [32m✔[39m[0m[90m should not modify it[0m
|
|
702
|
+
[0m is not provided[0m
|
|
703
|
+
[32m [32m✔[39m[0m[90m should initialize it as 5000[0m[33m (54ms)[0m
|
|
704
|
+
[0m when env[0m
|
|
705
|
+
[0m is provided[0m
|
|
706
|
+
[32m [32m✔[39m[0m[90m should not modify it[0m[33m (52ms)[0m
|
|
707
|
+
[0m is not provided[0m
|
|
708
|
+
[32m [32m✔[39m[0m[90m should initialize it as an empty {}[0m[33m (53ms)[0m
|
|
709
|
+
[0m storage adapter configuration[0m
|
|
710
|
+
[0m when legacy "s3" param[0m
|
|
711
|
+
[0m is provided[0m
|
|
712
|
+
[32m [32m✔[39m[0m[90m should create a storage.adapter configuration accordingly[0m[31m (236ms)[0m
|
|
713
|
+
[0m when no storage adapter[0m
|
|
714
|
+
[0m is provided[0m
|
|
715
|
+
[32m [32m✔[39m[0m[90m should default to the oc-s3-storage-adapter[0m[33m (54ms)[0m
|
|
716
|
+
[0m when refreshInterval[0m
|
|
717
|
+
[0m is provided[0m
|
|
718
|
+
[32m [32m✔[39m[0m[90m should pass the refreshInterval to the storage options[0m[33m (54ms)[0m
|
|
719
|
+
[0m when verbosity[0m
|
|
720
|
+
[0m is provided[0m
|
|
721
|
+
[32m [32m✔[39m[0m[90m should pass the verbosity to the storage options[0m[33m (55ms)[0m
|
|
722
|
+
[0m when storage.path[0m
|
|
723
|
+
[0m does not include a protocol[0m
|
|
724
|
+
[32m [32m✔[39m[0m[90m should sanitize the path to rely on the https protocol[0m[33m (53ms)[0m
|
|
725
|
+
[0m does include a prefix[0m
|
|
726
|
+
[32m [32m✔[39m[0m[90m should not modify it[0m[33m (53ms)[0m
|
|
727
|
+
|
|
728
|
+
[0m registry : domain : plugins-initialiser[0m
|
|
729
|
+
[0m when initialising not valid plugins[0m
|
|
730
|
+
[0m when plugin not registered correctly[0m
|
|
731
|
+
[32m [32m✔[39m[0m[90m should error[0m
|
|
732
|
+
[0m when plugin is anonymous[0m
|
|
733
|
+
[32m [32m✔[39m[0m[90m should error[0m
|
|
734
|
+
[0m when plugin does not expose a register method[0m
|
|
735
|
+
[32m [32m✔[39m[0m[90m should error[0m
|
|
736
|
+
[0m when plugin does not expose an execute method[0m
|
|
737
|
+
[32m [32m✔[39m[0m[90m should error[0m
|
|
738
|
+
[0m when initialising valid plugins[0m
|
|
739
|
+
[32m [32m✔[39m[0m[90m should register plugin with passed options[0m
|
|
740
|
+
[32m [32m✔[39m[0m[90m should expose the functionalities using the plugin names[0m
|
|
741
|
+
[32m [32m✔[39m[0m[90m should expose descriptions on the plugin functions if defined[0m
|
|
742
|
+
[32m [32m✔[39m[0m[90m should be make the functionality usable[0m
|
|
743
|
+
[0m when plugin specifies dependencies[0m
|
|
744
|
+
[32m [32m✔[39m[0m[90m should provide the getValue register method with the required dependent plugins[0m
|
|
745
|
+
[0m when plugins have a circular dependency[0m
|
|
746
|
+
[32m [32m✔[39m[0m[90m should throw an error[0m
|
|
747
|
+
[0m when plugin depends on a plugin that is not registered[0m
|
|
748
|
+
[32m [32m✔[39m[0m[90m should throw an error[0m
|
|
749
|
+
[0m when plugin chain requires multiple passes[0m
|
|
750
|
+
[32m [32m✔[39m[0m[90m should defer the initalisation of the plugin until all dependencies have bee registered[0m
|
|
751
|
+
|
|
752
|
+
[0m registry : domain : register-templates[0m
|
|
753
|
+
[0m when templates get registered without additional templates[0m
|
|
754
|
+
[32m [32m✔[39m[0m[90m should correctly register core-templates[0m
|
|
755
|
+
[0m when templates get registered with additional templates[0m
|
|
756
|
+
[32m [32m✔[39m[0m[90m should correctly register core-templates & extra templates[0m
|
|
757
|
+
[32m [32m✔[39m[0m[90m should replace the devurl for the url field[0m
|
|
758
|
+
[0m and additional template is already part of core-templates[0m
|
|
759
|
+
[32m [32m✔[39m[0m[90m should correctly register core-templates only[0m
|
|
760
|
+
|
|
761
|
+
[0m registry : domain : repository[0m
|
|
762
|
+
[0m when on cdn configuration[0m
|
|
763
|
+
[0m when getting the list of available components[0m
|
|
764
|
+
[32m [32m✔[39m[0m[90m should fetch the list from the cache[0m
|
|
765
|
+
[32m [32m✔[39m[0m[90m should respond without an error[0m
|
|
766
|
+
[32m [32m✔[39m[0m[90m should list the components[0m
|
|
767
|
+
[0m when getting the components details[0m
|
|
768
|
+
[32m [32m✔[39m[0m[90m should not error[0m
|
|
769
|
+
[32m [32m✔[39m[0m[90m should return the result[0m
|
|
770
|
+
[0m when getting the list of supported templates[0m
|
|
771
|
+
[0m when no templates are specificed on the configuaration[0m
|
|
772
|
+
[32m [32m✔[39m[0m[90m should return core templates[0m
|
|
773
|
+
[0m when the templates specificed on the configuaration are core-templates[0m
|
|
774
|
+
[32m [32m✔[39m[0m[90m should only return uniques templates[0m
|
|
775
|
+
[0m when templates specificed on the configuaration are not installed[0m
|
|
776
|
+
[32m [32m✔[39m[0m[90m should throw an error[0m
|
|
777
|
+
[0m when trying to get a not valid component[0m
|
|
778
|
+
[0m when the component does not exist[0m
|
|
779
|
+
[32m [32m✔[39m[0m[90m should respond with a proper error[0m
|
|
780
|
+
[0m when the get component info fails[0m
|
|
781
|
+
[32m [32m✔[39m[0m[90m should respond with a proper error[0m
|
|
782
|
+
[0m when the component exists but version does not[0m
|
|
783
|
+
[32m [32m✔[39m[0m[90m should respond with a proper error[0m
|
|
784
|
+
[0m when getting an existing component[0m
|
|
785
|
+
[32m [32m✔[39m[0m[90m should respond without an error[0m
|
|
786
|
+
[32m [32m✔[39m[0m[90m should fetch the versions' list from the cache[0m
|
|
787
|
+
[32m [32m✔[39m[0m[90m should fetch the component info from the correct package.json file[0m
|
|
788
|
+
[32m [32m✔[39m[0m[90m should return the component info[0m
|
|
789
|
+
[0m when getting the .env file[0m
|
|
790
|
+
[32m [32m✔[39m[0m[90m should respond without an error[0m
|
|
791
|
+
[32m [32m✔[39m[0m[90m should return the component info[0m
|
|
792
|
+
[0m when getting a static file url[0m
|
|
793
|
+
[32m [32m✔[39m[0m[90m should be using the static redirector from registry[0m
|
|
794
|
+
[0m when publishing a component[0m
|
|
795
|
+
[0m when component has a not valid name[0m
|
|
796
|
+
[32m [32m✔[39m[0m[90m should respond with an error[0m
|
|
797
|
+
[0m when component has a not valid version[0m
|
|
798
|
+
[32m [32m✔[39m[0m[90m should respond with an error[0m
|
|
799
|
+
[0m when component has a valid name and version[0m
|
|
800
|
+
[0m when component with same name and version is already in library[0m
|
|
801
|
+
[32m [32m✔[39m[0m[90m should respond with an error[0m
|
|
802
|
+
[0m when is in check mode only[0m
|
|
803
|
+
[32m [32m✔[39m[0m[90m should not refresh cached components list[0m
|
|
804
|
+
[32m [32m✔[39m[0m[90m should not refresh componens details[0m
|
|
805
|
+
[32m [32m✔[39m[0m[90m should not publish components[0m
|
|
806
|
+
[0m when component with same name and version is not in library[0m
|
|
807
|
+
[32m [32m✔[39m[0m[90m should refresh cached components list[0m
|
|
808
|
+
[32m [32m✔[39m[0m[90m should refresh componens details[0m
|
|
809
|
+
[32m [32m✔[39m[0m[90m should store the component in the correct directory[0m
|
|
810
|
+
[0m when on local configuration[0m
|
|
811
|
+
[0m when getting the list of available components[0m
|
|
812
|
+
[32m [32m✔[39m[0m[90m should respond without an error[0m
|
|
813
|
+
[32m [32m✔[39m[0m[90m should list the components[0m
|
|
814
|
+
[0m when trying to get a not valid component[0m
|
|
815
|
+
[0m when the component does not exist[0m
|
|
816
|
+
[32m [32m✔[39m[0m[90m should respond with a proper error[0m
|
|
817
|
+
[0m when the component exists but version does not[0m
|
|
818
|
+
[32m [32m✔[39m[0m[90m should respond with a proper error[0m
|
|
819
|
+
[0m when getting an existing component[0m
|
|
820
|
+
[32m [32m✔[39m[0m[90m should respond without an error[0m
|
|
821
|
+
[32m [32m✔[39m[0m[90m should return the component info[0m
|
|
822
|
+
[0m when getting a static file url[0m
|
|
823
|
+
[32m [32m✔[39m[0m[90m should be using the static redirector from registry[0m
|
|
824
|
+
[0m when trying to publish a component[0m
|
|
825
|
+
[32m [32m✔[39m[0m[90m should respond with an error[0m
|
|
826
|
+
|
|
827
|
+
[0m registry : domain : require-wrapper[0m
|
|
828
|
+
[0m when using the require wrapper in a clear context[0m
|
|
829
|
+
[0m when requiring a dependency[0m
|
|
830
|
+
[32m [32m✔[39m[0m[90m should correctly make the dependency require-able[0m
|
|
831
|
+
[0m when requiring an unrecognised dependency[0m
|
|
832
|
+
[32m [32m✔[39m[0m[90m should correctly throw an error[0m
|
|
833
|
+
[0m when requiring a core dependency[0m
|
|
834
|
+
[32m [32m✔[39m[0m[90m should correctly require and use the dependency[0m
|
|
835
|
+
[0m when requiring a core dependency with node: prefix[0m
|
|
836
|
+
[32m [32m✔[39m[0m[90m should correctly require and use the dependency[0m
|
|
837
|
+
[0m when requiring an unvetted core dependency[0m
|
|
838
|
+
[32m [32m✔[39m[0m[90m should correctly throw an error[0m
|
|
839
|
+
[0m when requiring a dependency with a relative path[0m
|
|
840
|
+
[32m [32m✔[39m[0m[90m should correctly make the dependency require-able[0m
|
|
841
|
+
[0m when requiring a dependency with a relative path that does not exist[0m
|
|
842
|
+
[32m [32m✔[39m[0m[90m should correctly throw an error[0m
|
|
843
|
+
[0m when try-require fails with absolute path but succeeds with package name[0m
|
|
844
|
+
[32m [32m✔[39m[0m[90m should fall back to requiring by package name[0m
|
|
845
|
+
[0m when a core module and npm package share the same name[0m
|
|
846
|
+
[32m [32m✔[39m[0m[90m should prefer the core module[0m
|
|
847
|
+
|
|
848
|
+
[0m registry : domain : sanitiser[0m
|
|
849
|
+
[0m when sanitising component's request parameters[0m
|
|
850
|
+
[0m when component has boolean parameter[0m
|
|
851
|
+
[32m [32m✔[39m[0m[90m should convert string to boolean when true[0m
|
|
852
|
+
[32m [32m✔[39m[0m[90m should convert string to boolean when true[0m
|
|
853
|
+
[0m when component has string parameter[0m
|
|
854
|
+
[32m [32m✔[39m[0m[90m should convert null to empty[0m
|
|
855
|
+
[0m when component has number parameter[0m
|
|
856
|
+
[32m [32m✔[39m[0m[90m should convert string to number[0m
|
|
857
|
+
[0m when component have not defined optional parameter[0m
|
|
858
|
+
[32m [32m✔[39m[0m[90m should keep the parameter as it is[0m
|
|
859
|
+
|
|
860
|
+
[0m registry : domain : adapter[0m
|
|
861
|
+
[0m when is not a legacy adapter[0m
|
|
862
|
+
[32m [32m✔[39m[0m[90m returns the same adapter[0m
|
|
863
|
+
[0m when is a legacy adapter[0m
|
|
864
|
+
[32m [32m✔[39m[0m[90m returns a universalified adapter[0m
|
|
865
|
+
[0m when is an official adapter[0m
|
|
866
|
+
[32m [32m✔[39m[0m[90m Shows a deprecation warning asking to upgrade[0m
|
|
867
|
+
[0m when is not an official adapter[0m
|
|
868
|
+
[32m [32m✔[39m[0m[90m Shows a deprecation warning about callbacks[0m
|
|
869
|
+
|
|
870
|
+
[0m registry : domain : url-builder[0m
|
|
871
|
+
[0m when building component url[0m
|
|
872
|
+
[0m when building component with just component name[0m
|
|
873
|
+
[32m [32m✔[39m[0m[90m should be baseUrl/componentName[0m
|
|
874
|
+
[0m when building component with version[0m
|
|
875
|
+
[32m [32m✔[39m[0m[90m should be baseUrl/componentName/version[0m
|
|
876
|
+
[0m when building component with query string parameters[0m
|
|
877
|
+
[0m when building component with number parameter[0m
|
|
878
|
+
[32m [32m✔[39m[0m[90m should be baseUrl/componentName/version/?param=123[0m
|
|
879
|
+
[0m when building component with url parameter[0m
|
|
880
|
+
[32m [32m✔[39m[0m[90m should be baseUrl/componentName/version/?param=encodedUrl[0m
|
|
881
|
+
[0m when building component preview url[0m
|
|
882
|
+
[0m when building url with just component name[0m
|
|
883
|
+
[32m [32m✔[39m[0m[90m should be baseUrl/componentName[0m
|
|
884
|
+
[0m when building url with version[0m
|
|
885
|
+
[32m [32m✔[39m[0m[90m should be baseUrl/componentName/version[0m
|
|
886
|
+
[0m when building url with query string parameters[0m
|
|
887
|
+
[0m when building component with number parameter[0m
|
|
888
|
+
[32m [32m✔[39m[0m[90m should be baseUrl/componentName/version/?param=123[0m
|
|
889
|
+
[0m when building component with url parameter[0m
|
|
890
|
+
[32m [32m✔[39m[0m[90m should be baseUrl/componentName/version/?param=encodedUrl[0m
|
|
891
|
+
|
|
892
|
+
[0m registry : domain : validator[0m
|
|
893
|
+
[0m when validating registry configuration[0m
|
|
894
|
+
[0m when configuration null[0m
|
|
895
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
896
|
+
[0m when configuration empty[0m
|
|
897
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
898
|
+
[0m prefix[0m
|
|
899
|
+
[0m when prefix does not start with /[0m
|
|
900
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
901
|
+
[0m when prefix does not end with /[0m
|
|
902
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
903
|
+
[0m publishAuth[0m
|
|
904
|
+
[0m when not specified[0m
|
|
905
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
906
|
+
[0m when specified and not supported[0m
|
|
907
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
908
|
+
[0m when specified and basic[0m
|
|
909
|
+
[0m when username and password specified[0m
|
|
910
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
911
|
+
[0m when multiple logins specified[0m
|
|
912
|
+
[0m when all logins have username and password[0m
|
|
913
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
914
|
+
[0m when some logins are missing username or password[0m
|
|
915
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
916
|
+
[0m when logins array is empty[0m
|
|
917
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
918
|
+
[0m when username and password not specified[0m
|
|
919
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
920
|
+
[0m dependencies[0m
|
|
921
|
+
[0m when not specified[0m
|
|
922
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
923
|
+
[0m when specified[0m
|
|
924
|
+
[0m when it is an array[0m
|
|
925
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
926
|
+
[0m when it is not an array[0m
|
|
927
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
928
|
+
[0m s3[0m
|
|
929
|
+
[0m when local=true[0m
|
|
930
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
931
|
+
[0m when not in local mode[0m
|
|
932
|
+
[0m when s3 settings empty[0m
|
|
933
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
934
|
+
[0m when s3 setting is missing bucket[0m
|
|
935
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
936
|
+
[0m when s3 setting is missing key[0m
|
|
937
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
938
|
+
[0m when s3 setting is missing region[0m
|
|
939
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
940
|
+
[0m when s3 setting is missing secret[0m
|
|
941
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
942
|
+
[0m when s3 setting do not use key/secret - EC2 IAM Role use case[0m
|
|
943
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
944
|
+
[0m when s3 setting contains all properties[0m
|
|
945
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
946
|
+
[0m routes[0m
|
|
947
|
+
[0m when not specified[0m
|
|
948
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
949
|
+
[0m when specified[0m
|
|
950
|
+
[0m when not an array[0m
|
|
951
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
952
|
+
[0m when route does not contain route[0m
|
|
953
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
954
|
+
[0m when route does not contain handler[0m
|
|
955
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
956
|
+
[0m when route does not contain method[0m
|
|
957
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
958
|
+
[0m when route contains handler that is not a function or a string[0m
|
|
959
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
960
|
+
[0m when route overrides prefix namespace[0m
|
|
961
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
962
|
+
[0m customHeadersToSkipOnWeakVersion[0m
|
|
963
|
+
[0m when customHeadersToSkipOnWeakVersion is not an array[0m
|
|
964
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
965
|
+
[0m when customHeadersToSkipOnWeakVersion is an array but contains non-string elements[0m
|
|
966
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
967
|
+
[0m when customHeadersToSkipOnWeakVersion is a non-empty array of strings[0m
|
|
968
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
969
|
+
[0m when validating component request by parameter[0m
|
|
970
|
+
[0m when component have not parameters[0m
|
|
971
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
972
|
+
[0m when component have not mandatory parameters[0m
|
|
973
|
+
[32m [32m✔[39m[0m[90m should be valid when non mandatory parameters not provided[0m
|
|
974
|
+
[32m [32m✔[39m[0m[90m should be valid when non mandatory parameters provided in a valid format[0m
|
|
975
|
+
[32m [32m✔[39m[0m[90m should be not valid when non mandatory parameters provided in a non valid format[0m
|
|
976
|
+
[0m when component have mandatory parameters[0m
|
|
977
|
+
[32m [32m✔[39m[0m[90m should not be valid when mandatory parameter not provided[0m
|
|
978
|
+
[0m when mandatory string parameter provided[0m
|
|
979
|
+
[32m [32m✔[39m[0m[90m should be valid when parameter in a valid form[0m
|
|
980
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter in a non valid form[0m
|
|
981
|
+
[32m [32m✔[39m[0m[90m should be valid when parameter is an empty string[0m
|
|
982
|
+
[0m when non mandatory number provided[0m
|
|
983
|
+
[32m [32m✔[39m[0m[90m should not be valid when provided in a non valid form[0m
|
|
984
|
+
[32m [32m✔[39m[0m[90m should be valid when 0[0m
|
|
985
|
+
[0m when non mandatory boolean provided[0m
|
|
986
|
+
[32m [32m✔[39m[0m[90m should not be valid when provided in a non valid form[0m
|
|
987
|
+
[0m when mandatory number parameter provided[0m
|
|
988
|
+
[32m [32m✔[39m[0m[90m should be valid when parameter in a valid form[0m
|
|
989
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter in a non valid form[0m
|
|
990
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter is null[0m
|
|
991
|
+
[0m when mandatory boolean parameter provided[0m
|
|
992
|
+
[32m [32m✔[39m[0m[90m should be valid when parameter in a valid form[0m
|
|
993
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter in a non valid form[0m
|
|
994
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter is null[0m
|
|
995
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter is undefined[0m
|
|
996
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter not provided[0m
|
|
997
|
+
[0m when component parameters have enum constraints[0m
|
|
998
|
+
[0m when string parameter has enum constraint[0m
|
|
999
|
+
[32m [32m✔[39m[0m[90m should be valid when parameter value is in enum[0m
|
|
1000
|
+
[32m [32m✔[39m[0m[90m should be valid when parameter value is another valid enum value[0m
|
|
1001
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter value is not in enum[0m
|
|
1002
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter value is case sensitive[0m
|
|
1003
|
+
[0m when number parameter has enum constraint[0m
|
|
1004
|
+
[32m [32m✔[39m[0m[90m should be valid when parameter value is in enum[0m
|
|
1005
|
+
[32m [32m✔[39m[0m[90m should be valid when parameter value is another valid enum value[0m
|
|
1006
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter value is not in enum[0m
|
|
1007
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter value is zero but not in enum[0m
|
|
1008
|
+
[0m when boolean parameter has enum constraint[0m
|
|
1009
|
+
[32m [32m✔[39m[0m[90m should be valid when parameter value is in enum[0m
|
|
1010
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter value is not in enum[0m
|
|
1011
|
+
[0m when parameter has both type and enum validation[0m
|
|
1012
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter has wrong type[0m
|
|
1013
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter has correct type but wrong enum value[0m
|
|
1014
|
+
[0m when multiple parameters have enum constraints[0m
|
|
1015
|
+
[32m [32m✔[39m[0m[90m should be valid when all parameters have valid enum values[0m
|
|
1016
|
+
[32m [32m✔[39m[0m[90m should not be valid when one parameter has invalid enum value[0m
|
|
1017
|
+
[32m [32m✔[39m[0m[90m should not be valid when multiple parameters have invalid enum values[0m
|
|
1018
|
+
[0m when parameter has empty enum array[0m
|
|
1019
|
+
[32m [32m✔[39m[0m[90m should not be valid when any value is provided[0m
|
|
1020
|
+
[0m when parameter has single value enum[0m
|
|
1021
|
+
[32m [32m✔[39m[0m[90m should be valid when parameter matches the single enum value[0m
|
|
1022
|
+
[32m [32m✔[39m[0m[90m should not be valid when parameter does not match the single enum value[0m
|
|
1023
|
+
[0m when validating component name for new candidate[0m
|
|
1024
|
+
[0m when name has spaces[0m
|
|
1025
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
1026
|
+
[0m when name has not allowed characters[0m
|
|
1027
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
1028
|
+
[0m when name has alphanumeric characters, _ or -[0m
|
|
1029
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
1030
|
+
[0m when name is reserved[0m
|
|
1031
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
1032
|
+
[0m when validating component version for new candidate[0m
|
|
1033
|
+
[0m when version already exists[0m
|
|
1034
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
1035
|
+
[0m when version does not exist[0m
|
|
1036
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
1037
|
+
[0m when validating component package for new candidate[0m
|
|
1038
|
+
[0m when package not valid[0m
|
|
1039
|
+
[32m [32m✔[39m[0m[90m should not be valid when uploaded files is empty[0m
|
|
1040
|
+
[32m [32m✔[39m[0m[90m should not be valid when uploaded package consists of multiple files[0m
|
|
1041
|
+
[32m [32m✔[39m[0m[90m should not be valid when file has not the proper file extension[0m
|
|
1042
|
+
[32m [32m✔[39m[0m[90m should not be valid when file has been truncated[0m
|
|
1043
|
+
[32m [32m✔[39m[0m[90m should not be valid when file has wrong mimetype[0m
|
|
1044
|
+
[0m when custom validation provided[0m
|
|
1045
|
+
[0m when package.json does not contain mandatory fields[0m
|
|
1046
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
1047
|
+
[32m [32m✔[39m[0m[90m should return the error[0m
|
|
1048
|
+
[0m when package.json contains mandatory fields[0m
|
|
1049
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
1050
|
+
[0m when package is valid[0m
|
|
1051
|
+
[32m [32m✔[39m[0m[90m should be valid with mimetype application/octet-stream[0m
|
|
1052
|
+
[32m [32m✔[39m[0m[90m should be valid with mimetype application/gzip[0m
|
|
1053
|
+
[0m when validating component plugin requirements[0m
|
|
1054
|
+
[0m when component does not require any plugin[0m
|
|
1055
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
1056
|
+
[0m when component requires plugin[0m
|
|
1057
|
+
[0m when registry does not support plugin[0m
|
|
1058
|
+
[32m [32m✔[39m[0m[90m should not be valid[0m
|
|
1059
|
+
[32m [32m✔[39m[0m[90m should list missing dependencies[0m
|
|
1060
|
+
[0m when registry supports plugin[0m
|
|
1061
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
1062
|
+
[0m when validating CLI OC version in request headers[0m
|
|
1063
|
+
[0m when user-agent header is not specified[0m
|
|
1064
|
+
[32m [32m✔[39m[0m[90m should be invalid[0m
|
|
1065
|
+
[32m [32m✔[39m[0m[90m should suggest correct version of CLI[0m
|
|
1066
|
+
[0m when user-agent header doesn't have correct format[0m
|
|
1067
|
+
[32m [32m✔[39m[0m[90m should be invalid[0m
|
|
1068
|
+
[32m [32m✔[39m[0m[90m should suggest correct version of CLI[0m
|
|
1069
|
+
[0m when OC CLI version in user-agent header is lower than Registry version[0m
|
|
1070
|
+
[32m [32m✔[39m[0m[90m should be invalid[0m
|
|
1071
|
+
[32m [32m✔[39m[0m[90m should suggest correct version of CLI[0m
|
|
1072
|
+
[0m when OC CLI version in user-agent header is equal to Registry version (same major.minor)[0m
|
|
1073
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
1074
|
+
[32m [32m✔[39m[0m[90m should not return an error[0m
|
|
1075
|
+
[0m when OC CLI version in user-agent header is higher than Registry version[0m
|
|
1076
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
1077
|
+
[32m [32m✔[39m[0m[90m should not return an error[0m
|
|
1078
|
+
[0m when OC CLI version has different patch version but same major.minor[0m
|
|
1079
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
1080
|
+
[32m [32m✔[39m[0m[90m should not return an error[0m
|
|
1081
|
+
[0m when validating node engine version in request headers[0m
|
|
1082
|
+
[0m when user-agent header is not specified[0m
|
|
1083
|
+
[32m [32m✔[39m[0m[90m should be invalid[0m
|
|
1084
|
+
[32m [32m✔[39m[0m[90m should suggest correct version of node engine[0m
|
|
1085
|
+
[0m when user-agent header doesn't have correct format[0m
|
|
1086
|
+
[32m [32m✔[39m[0m[90m should be invalid[0m
|
|
1087
|
+
[32m [32m✔[39m[0m[90m should suggest correct version of node engine[0m
|
|
1088
|
+
[0m when node version in user-agent header is lower than Registry version of node[0m
|
|
1089
|
+
[32m [32m✔[39m[0m[90m should be invalid[0m
|
|
1090
|
+
[32m [32m✔[39m[0m[90m should suggest correct version of node engine[0m
|
|
1091
|
+
[0m when node version in user-agent header is equal to Registry version of node[0m
|
|
1092
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
1093
|
+
[32m [32m✔[39m[0m[90m should not return an error[0m
|
|
1094
|
+
[0m when node version in user-agent header is higher than Registry version of node[0m
|
|
1095
|
+
[32m [32m✔[39m[0m[90m should be valid[0m
|
|
1096
|
+
[32m [32m✔[39m[0m[90m should not return an error[0m
|
|
1097
|
+
|
|
1098
|
+
[0m registry : domain : version-handler[0m
|
|
1099
|
+
[0m when getting component[0m
|
|
1100
|
+
[0m when versions not available[0m
|
|
1101
|
+
[32m [32m✔[39m[0m[90m should return an undefined when a version is specified[0m
|
|
1102
|
+
[32m [32m✔[39m[0m[90m should return an undefined when a version is not specified[0m
|
|
1103
|
+
[0m when versions available[0m
|
|
1104
|
+
[32m [32m✔[39m[0m[90m should return the latest when a version is not specified[0m
|
|
1105
|
+
[32m [32m✔[39m[0m[90m should return undefined when not valid version specified[0m
|
|
1106
|
+
[32m [32m✔[39m[0m[90m should return the latest when latest version specified[0m
|
|
1107
|
+
[32m [32m✔[39m[0m[90m should return the latest minor+patch of a version when minor omitted[0m
|
|
1108
|
+
[32m [32m✔[39m[0m[90m should return the latest path for minor when patch omitted[0m
|
|
1109
|
+
[32m [32m✔[39m[0m[90m should return the latest patch of a version when ~ used on patch level[0m
|
|
1110
|
+
[32m [32m✔[39m[0m[90m should return the latest patch version when ~ used on minor level[0m
|
|
1111
|
+
[32m [32m✔[39m[0m[90m should return the latest patch of a version when X used on patch[0m
|
|
1112
|
+
[32m [32m✔[39m[0m[90m should return the latest patch of a version when X used on minor[0m
|
|
1113
|
+
[0m when only pre release versions available[0m
|
|
1114
|
+
[32m [32m✔[39m[0m[90m should return the latest when a version is not specified[0m
|
|
1115
|
+
[32m [32m✔[39m[0m[90m should return undefined when not valid version specified[0m
|
|
1116
|
+
[32m [32m✔[39m[0m[90m should return the latest when latest version specified[0m
|
|
1117
|
+
[32m [32m✔[39m[0m[90m should return the version specified[0m
|
|
1118
|
+
[0m when mix of release and pre-release versions available[0m
|
|
1119
|
+
[32m [32m✔[39m[0m[90m should return the latest release version when a version is not specified[0m
|
|
1120
|
+
[32m [32m✔[39m[0m[90m should return the latest when latest version specified[0m
|
|
1121
|
+
[32m [32m✔[39m[0m[90m should return the version specified[0m
|
|
1122
|
+
[0m when publishing component[0m
|
|
1123
|
+
[0m when version already exists[0m
|
|
1124
|
+
[32m [32m✔[39m[0m[90m shouldn't be valid[0m
|
|
1125
|
+
[0m when version is available[0m
|
|
1126
|
+
[32m [32m✔[39m[0m[90m should be valid when major than latest[0m
|
|
1127
|
+
[32m [32m✔[39m[0m[90m should be valid when major than latest minor of previous major[0m
|
|
1128
|
+
[32m [32m✔[39m[0m[90m should be valid when major than latest patch of previous minor[0m
|
|
1129
|
+
[32m [32m✔[39m[0m[90m should be valid when minor than an existing patch but not existing[0m
|
|
1130
|
+
|
|
1131
|
+
[0m registry : routes : component[0m
|
|
1132
|
+
[0m when getting a component with server.js execution timeout[0m
|
|
1133
|
+
[32m [32m✔[39m[0m[90m should return 500 status code[0m
|
|
1134
|
+
[32m [32m✔[39m[0m[90m should respond with error message[0m
|
|
1135
|
+
[32m [32m✔[39m[0m[90m should return component's name and request version[0m
|
|
1136
|
+
[0m when getting a component with a server.js that returns undefined data[0m
|
|
1137
|
+
[32m [32m✔[39m[0m[90m should return 500 status code[0m
|
|
1138
|
+
[32m [32m✔[39m[0m[90m should respond with error message for undefined data[0m
|
|
1139
|
+
[32m [32m✔[39m[0m[90m should return component's name and request version[0m
|
|
1140
|
+
[0m when getting a component with server.js execution errors[0m
|
|
1141
|
+
[32m [32m✔[39m[0m[90m should return 500 status code[0m
|
|
1142
|
+
[32m [32m✔[39m[0m[90m should respond with error message including missing plugin[0m
|
|
1143
|
+
[32m [32m✔[39m[0m[90m should return component's name and request version[0m
|
|
1144
|
+
[0m when getting a component with server.js asynchronous execution errors[0m
|
|
1145
|
+
[0m when has error that gets fired on first execution[0m
|
|
1146
|
+
[32m [32m✔[39m[0m[90m should return 500 status code[0m
|
|
1147
|
+
[32m [32m✔[39m[0m[90m should respond with error message for component execution error[0m
|
|
1148
|
+
[32m [32m✔[39m[0m[90m should return component's name and request version[0m
|
|
1149
|
+
[0m when has error that gets fired on following executions[0m
|
|
1150
|
+
[32m [32m✔[39m[0m[90m should return 200 status code for successful request[0m
|
|
1151
|
+
[32m [32m✔[39m[0m[90m should return 500 status code when error happens[0m
|
|
1152
|
+
[32m [32m✔[39m[0m[90m should respond without error for successful request[0m
|
|
1153
|
+
[32m [32m✔[39m[0m[90m should respond with error message for component execution error[0m
|
|
1154
|
+
[32m [32m✔[39m[0m[90m should return component's name and request version for both requests[0m
|
|
1155
|
+
[0m when getting a component that implements a plugin[0m
|
|
1156
|
+
[0m when plugin not declared in package.json[0m
|
|
1157
|
+
(node:98422) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead. (Triggered by calling processImmediate on process.)
|
|
1158
|
+
[32m [32m✔[39m[0m[90m should return 500 status code[0m
|
|
1159
|
+
[32m [32m✔[39m[0m[90m should respond with GENERIC_ERROR error code[0m
|
|
1160
|
+
[32m [32m✔[39m[0m[90m should respond with error message including missing plugin[0m
|
|
1161
|
+
[32m [32m✔[39m[0m[90m should return component's name and request version[0m
|
|
1162
|
+
[0m when plugin declared in package.json[0m
|
|
1163
|
+
[0m when registry implements plugin[0m
|
|
1164
|
+
[32m [32m✔[39m[0m[90m should return 200 status code[0m
|
|
1165
|
+
[32m [32m✔[39m[0m[90m should use plugin inside compiledView[0m
|
|
1166
|
+
[32m [32m✔[39m[0m[90m should return component's name and request version[0m
|
|
1167
|
+
[0m when registry does not implement plugin[0m
|
|
1168
|
+
[32m [32m✔[39m[0m[90m should return 501 status code[0m
|
|
1169
|
+
[32m [32m✔[39m[0m[90m should respond with PLUGIN_MISSING_FROM_REGISTRY error code[0m
|
|
1170
|
+
[32m [32m✔[39m[0m[90m should respond with error message including missing plugin[0m
|
|
1171
|
+
[32m [32m✔[39m[0m[90m should return component's name and request version[0m
|
|
1172
|
+
[0m when getting a component that requires a npm module[0m
|
|
1173
|
+
[0m when registry implements dependency[0m
|
|
1174
|
+
[32m [32m✔[39m[0m[90m should return 200 status code[0m
|
|
1175
|
+
[32m [32m✔[39m[0m[90m should use plugin inside compiledView[0m
|
|
1176
|
+
[32m [32m✔[39m[0m[90m should return component's name and request version[0m
|
|
1177
|
+
[0m when registry does not implement dependency[0m
|
|
1178
|
+
[32m [32m✔[39m[0m[90m should return 501 status code[0m
|
|
1179
|
+
[32m [32m✔[39m[0m[90m should respond with DEPENDENCY_MISSING_FROM_REGISTRY error code[0m
|
|
1180
|
+
[32m [32m✔[39m[0m[90m should respond with error message including missing dependency[0m
|
|
1181
|
+
[32m [32m✔[39m[0m[90m should return component's name and request version[0m
|
|
1182
|
+
[0m when getting a component with server.js that sets custom headers with empty customHeadersToSkipOnWeakVersion[0m
|
|
1183
|
+
[32m [32m✔[39m[0m[90m should return 200 status code[0m
|
|
1184
|
+
[32m [32m✔[39m[0m[90m should set response headers[0m
|
|
1185
|
+
[32m [32m✔[39m[0m[90m should return component's name and request version[0m
|
|
1186
|
+
[0m when getting a component with server.js that sets custom headers with non-empty customHeadersToSkipOnWeakVersion[0m
|
|
1187
|
+
[32m [32m✔[39m[0m[90m should return 200 status code[0m
|
|
1188
|
+
[32m [32m✔[39m[0m[90m should not set response headers[0m
|
|
1189
|
+
[32m [32m✔[39m[0m[90m should return component's name and request version[0m
|
|
1190
|
+
[0m when getting a simple component with server.js after headers component no custom headers should be set[0m
|
|
1191
|
+
[32m [32m✔[39m[0m[90m should return 200 status code for the first component[0m
|
|
1192
|
+
[32m [32m✔[39m[0m[90m should return "response-headers-component" name for the first component's name and request version[0m
|
|
1193
|
+
[32m [32m✔[39m[0m[90m should set response headers for the first component[0m
|
|
1194
|
+
[32m [32m✔[39m[0m[90m should return 200 status code for the second component[0m
|
|
1195
|
+
[32m [32m✔[39m[0m[90m should return "simple-component" name for the second component's name and request version[0m
|
|
1196
|
+
[32m [32m✔[39m[0m[90m should not set custom response for the second component[0m
|
|
1197
|
+
[0m when getting a component info for a component that sets custom headers[0m
|
|
1198
|
+
[32m [32m✔[39m[0m[90m should return 200 status code[0m
|
|
1199
|
+
[32m [32m✔[39m[0m[90m should return no custom headers[0m
|
|
1200
|
+
[32m [32m✔[39m[0m[90m should return component's name and request version[0m
|
|
1201
|
+
[32m [32m✔[39m[0m[90m should not return rendered HTML[0m
|
|
1202
|
+
|
|
1203
|
+
[0m registry : routes : components[0m
|
|
1204
|
+
[0m when making valid request for two components[0m
|
|
1205
|
+
[32m [32m✔[39m[0m[90m should return 200 status code[0m
|
|
1206
|
+
[32m [32m✔[39m[0m[90m should return a response containing both components[0m
|
|
1207
|
+
[32m [32m✔[39m[0m[90m should return a response containing components in the correct order[0m
|
|
1208
|
+
[32m [32m✔[39m[0m[90m should return a response with error code and description for the first component[0m
|
|
1209
|
+
[32m [32m✔[39m[0m[90m should return a response with rendered html for second component[0m
|
|
1210
|
+
[32m [32m✔[39m[0m[90m should include 500 status code for first component[0m
|
|
1211
|
+
[32m [32m✔[39m[0m[90m should include 200 status code for second component[0m
|
|
1212
|
+
[32m [32m✔[39m[0m[90m should return name and request version for both components[0m
|
|
1213
|
+
[0m when making request for 0 components[0m
|
|
1214
|
+
[32m [32m✔[39m[0m[90m should return 200 status code[0m
|
|
1215
|
+
[32m [32m✔[39m[0m[90m should return a response containing empty array[0m
|
|
1216
|
+
[0m when making valid info request for two components[0m
|
|
1217
|
+
[32m [32m✔[39m[0m[90m should return 200 status code[0m
|
|
1218
|
+
[32m [32m✔[39m[0m[90m should return a response containing both components[0m
|
|
1219
|
+
[32m [32m✔[39m[0m[90m should return a response containing components in the correct order[0m
|
|
1220
|
+
[0m when making info request for 0 components[0m
|
|
1221
|
+
[32m [32m✔[39m[0m[90m should return 200 status code[0m
|
|
1222
|
+
[32m [32m✔[39m[0m[90m should return a response containing empty array[0m
|
|
1223
|
+
[0m when making not valid request[0m
|
|
1224
|
+
[0m when not providing components property[0m
|
|
1225
|
+
[32m [32m✔[39m[0m[90m should return 400 status code[0m
|
|
1226
|
+
[32m [32m✔[39m[0m[90m should return error details[0m
|
|
1227
|
+
[0m when components property is not an array[0m
|
|
1228
|
+
[32m [32m✔[39m[0m[90m should return 400 status code[0m
|
|
1229
|
+
[32m [32m✔[39m[0m[90m should return error details[0m
|
|
1230
|
+
[0m when component does not have name property[0m
|
|
1231
|
+
[32m [32m✔[39m[0m[90m should return 400 status code[0m
|
|
1232
|
+
[32m [32m✔[39m[0m[90m should return error details[0m
|
|
1233
|
+
[0m when components do not have name property[0m
|
|
1234
|
+
[32m [32m✔[39m[0m[90m should return 400 status code[0m
|
|
1235
|
+
[32m [32m✔[39m[0m[90m should return error details[0m
|
|
1236
|
+
[0m when getting a component that has custom parameters[0m
|
|
1237
|
+
[32m [32m✔[39m[0m[90m should return a 200 response[0m
|
|
1238
|
+
[0m when getting a component that has missing required parameters[0m
|
|
1239
|
+
[32m [32m✔[39m[0m[90m should return 400 status code[0m
|
|
1240
|
+
[0m when making valid info request for a component action[0m
|
|
1241
|
+
[32m [32m✔[39m[0m[90m should return a 200 response[0m
|
|
1242
|
+
|
|
1243
|
+
[0m registry : routes : plugins[0m
|
|
1244
|
+
[0m when is not discoverable[0m
|
|
1245
|
+
[32m [32m✔[39m[0m[90m should return 401 status code[0m
|
|
1246
|
+
[0m when is discoverable[0m
|
|
1247
|
+
[32m [32m✔[39m[0m[90m should return the list of dependencies[0m
|
|
1248
|
+
|
|
1249
|
+
[0m registry : routes : helpers : apply-default-values[0m
|
|
1250
|
+
[0m when component deesn't have optional parameters[0m
|
|
1251
|
+
[32m [32m✔[39m[0m[90m should return requestParameters[0m
|
|
1252
|
+
[0m when component has optional parameters[0m
|
|
1253
|
+
[0m when default value of parameter is not specified[0m
|
|
1254
|
+
[0m when request doesn't specify values of optional parameters[0m
|
|
1255
|
+
[32m [32m✔[39m[0m[90m should return requestParameters[0m
|
|
1256
|
+
[0m when default value of parameter is specified[0m
|
|
1257
|
+
[0m when request specify values of optional parameters[0m
|
|
1258
|
+
[32m [32m✔[39m[0m[90m should return requestParameters[0m
|
|
1259
|
+
[0m when request specify values of some optional parameters[0m
|
|
1260
|
+
[32m [32m✔[39m[0m[90m should return requestParameters[0m
|
|
1261
|
+
[0m when request doesn't specify values of optional parameters[0m
|
|
1262
|
+
[0m when string parameter is undefined[0m
|
|
1263
|
+
[32m [32m✔[39m[0m[90m should return requestParameters with default values of optional parameters[0m
|
|
1264
|
+
[0m when string parameter is null[0m
|
|
1265
|
+
[32m [32m✔[39m[0m[90m should return requestParameters with default values of optional parameters[0m
|
|
1266
|
+
|
|
1267
|
+
[0m registry : routes : helpers : get-available-dependencies[0m
|
|
1268
|
+
[0m happy path[0m
|
|
1269
|
+
[32m [32m✔[39m[0m[90m should map to structured view-model[0m
|
|
1270
|
+
|
|
1271
|
+
[0m registry : routes : helpers : get-component-fallback[0m
|
|
1272
|
+
[32m [32m✔[39m[0m[90m should not forward accept-encoding header when fetching from fallback registry[0m
|
|
1273
|
+
|
|
1274
|
+
[0m registry : routes : helpers : get-component[0m
|
|
1275
|
+
[0m when the component has an env file[0m
|
|
1276
|
+
[32m [32m✔[39m[0m[90m should put the env data as part of the context, available to the server[0m
|
|
1277
|
+
[0m when getting a component with success[0m
|
|
1278
|
+
[32m [32m✔[39m[0m[90m should fire a component-retrieved event[0m
|
|
1279
|
+
[0m when getting a component with failure[0m
|
|
1280
|
+
[32m [32m✔[39m[0m[90m should fire a data-provider-error event[0m
|
|
1281
|
+
[32m [32m✔[39m[0m[90m should fire a component-retrieved event[0m
|
|
1282
|
+
[0m when the component sends a custom status code[0m
|
|
1283
|
+
[32m [32m✔[39m[0m[90m should return that status code to the client[0m
|
|
1284
|
+
[0m when rendering a component with a legacy template[0m
|
|
1285
|
+
[0m when oc-client requests an unrendered component and it doesn't provide templates header[0m
|
|
1286
|
+
[32m [32m✔[39m[0m[90m should return the unrendered version[0m
|
|
1287
|
+
[0m when oc-client requests an unrendered component and it supports the correct template[0m
|
|
1288
|
+
[32m [32m✔[39m[0m[90m should return the unrendered version[0m
|
|
1289
|
+
[0m when rendering a component with a non legacy template[0m
|
|
1290
|
+
[0m when the registry supports the template[0m
|
|
1291
|
+
[0m when oc-client requests an unrendered component and the client doesn't support it[0m
|
|
1292
|
+
[32m [32m✔[39m[0m[90m should return the rendered version[0m
|
|
1293
|
+
[0m when oc-client requests an unrendered component and the client supports the correct template[0m
|
|
1294
|
+
[32m [32m✔[39m[0m[90m should return the unrendered version[0m
|
|
1295
|
+
[0m when the registry doesn't support the template[0m
|
|
1296
|
+
[0m when oc-client requests an unrendered component and the client doesn't support it[0m
|
|
1297
|
+
[32m [32m✔[39m[0m[90m should return an error[0m
|
|
1298
|
+
[0m when oc-client requests an unrendered component and the client supports the correct template[0m
|
|
1299
|
+
[32m [32m✔[39m[0m[90m should return an error[0m
|
|
1300
|
+
|
|
1301
|
+
[0m registry : routes : helpers : get-components-history[0m
|
|
1302
|
+
[0m when components details are provided[0m
|
|
1303
|
+
[0m composing the single history object[0m
|
|
1304
|
+
[32m [32m✔[39m[0m[90m should return the publish date of a component[0m
|
|
1305
|
+
[32m [32m✔[39m[0m[90m should return the version of a component[0m
|
|
1306
|
+
[32m [32m✔[39m[0m[90m should return the component name[0m
|
|
1307
|
+
[0m sorting the entries by date[0m
|
|
1308
|
+
[32m [32m✔[39m[0m[90m should return the publish date of a component[0m
|
|
1309
|
+
|
|
1310
|
+
[0m registry : routes : helpers : is-url-discoverable[0m
|
|
1311
|
+
[0m when url responds with application/json[0m
|
|
1312
|
+
[32m [32m✔[39m[0m[90m should not be discoverable[0m
|
|
1313
|
+
[0m when url responds with text/html[0m
|
|
1314
|
+
[32m [32m✔[39m[0m[90m should be discoverable[0m
|
|
1315
|
+
|
|
1316
|
+
[0m registry : routes : plugins[0m
|
|
1317
|
+
[0m when is not discoverable[0m
|
|
1318
|
+
[32m [32m✔[39m[0m[90m should return 401 status code[0m
|
|
1319
|
+
[0m when is discoverable[0m
|
|
1320
|
+
[32m [32m✔[39m[0m[90m should return the list of plugins[0m
|
|
1321
|
+
|
|
1322
|
+
[0m registry : routes : validate[0m
|
|
1323
|
+
[0m when packageJson is missing in body[0m
|
|
1324
|
+
[32m [32m✔[39m[0m[90m should return 400 status[0m
|
|
1325
|
+
[32m [32m✔[39m[0m[90m should return error message[0m
|
|
1326
|
+
[0m when component name and version are missing[0m
|
|
1327
|
+
[32m [32m✔[39m[0m[90m should return 400 status[0m
|
|
1328
|
+
[32m [32m✔[39m[0m[90m should return error message about missing name and version[0m
|
|
1329
|
+
[0m when component name is invalid[0m
|
|
1330
|
+
[32m [32m✔[39m[0m[90m should return 409 status[0m
|
|
1331
|
+
[32m [32m✔[39m[0m[90m should return error code and message[0m
|
|
1332
|
+
[0m when component version is invalid[0m
|
|
1333
|
+
[32m [32m✔[39m[0m[90m should return 409 status[0m
|
|
1334
|
+
[32m [32m✔[39m[0m[90m should return error code and message[0m
|
|
1335
|
+
[0m when validation is successful[0m
|
|
1336
|
+
[32m [32m✔[39m[0m[90m should return 200 status[0m
|
|
1337
|
+
[32m [32m✔[39m[0m[90m should return success message[0m
|
|
1338
|
+
[0m when using URL params for component name and version[0m
|
|
1339
|
+
[32m [32m✔[39m[0m[90m should return 200 status[0m
|
|
1340
|
+
[32m [32m✔[39m[0m[90m should return success message[0m
|
|
1341
|
+
|
|
1342
|
+
[0m registry[0m
|
|
1343
|
+
[0m when instanciated[0m
|
|
1344
|
+
[0m when options are not valid[0m
|
|
1345
|
+
[32m [32m✔[39m[0m[90m should throw an error[0m
|
|
1346
|
+
[0m when options are valid[0m
|
|
1347
|
+
[32m [32m✔[39m[0m[90m should instantiate express[0m
|
|
1348
|
+
[32m [32m✔[39m[0m[90m should bind the middleware[0m
|
|
1349
|
+
[32m [32m✔[39m[0m[90m should instanciate the repository[0m
|
|
1350
|
+
[0m when starting it[0m
|
|
1351
|
+
[0m when plugins initialiser fails[0m
|
|
1352
|
+
[32m [32m✔[39m[0m[90m should fail with error[0m
|
|
1353
|
+
[0m when plugins initialiser succeeds[0m
|
|
1354
|
+
[0m when repository initialisation fails[0m
|
|
1355
|
+
[32m [32m✔[39m[0m[90m should fail with error[0m
|
|
1356
|
+
[0m when repository initialisation succeeds[0m
|
|
1357
|
+
[0m when app fails to start[0m
|
|
1358
|
+
[32m [32m✔[39m[0m[90m should fail with error[0m
|
|
1359
|
+
[0m when app starts[0m
|
|
1360
|
+
[0m when http listener errors[0m
|
|
1361
|
+
[32m [32m✔[39m[0m[90m should fail with error[0m
|
|
1362
|
+
[0m when http listener succeeds[0m
|
|
1363
|
+
[32m [32m✔[39m[0m[90m should not return error[0m
|
|
1364
|
+
[32m [32m✔[39m[0m[90m should return the server instance[0m
|
|
1365
|
+
[32m [32m✔[39m[0m[90m should emit a start event[0m
|
|
1366
|
+
[0m when http listener emits an error before the listener to start[0m
|
|
1367
|
+
[32m [32m✔[39m[0m[90m should return error[0m
|
|
1368
|
+
[32m [32m✔[39m[0m[90m should emit an error event[0m
|
|
1369
|
+
|
|
1370
|
+
[0m resources : settings[0m
|
|
1371
|
+
[0m files to watch ignore regex[0m
|
|
1372
|
+
[0m when a legitimate file changes[0m
|
|
1373
|
+
[32m [32m✔[39m[0m[90m should not ignore it[0m
|
|
1374
|
+
[0m when a file in a github.io repo changes[0m
|
|
1375
|
+
[32m [32m✔[39m[0m[90m should not ignore it[0m
|
|
1376
|
+
[0m when something in the .git folder changes[0m
|
|
1377
|
+
[32m [32m✔[39m[0m[90m should ignore it[0m
|
|
1378
|
+
[0m when something in the .idea folder changes[0m
|
|
1379
|
+
[32m [32m✔[39m[0m[90m should ignore it[0m
|
|
1380
|
+
[0m when node_modules changes[0m
|
|
1381
|
+
[32m [32m✔[39m[0m[90m should ignore it[0m
|
|
1382
|
+
|
|
1383
|
+
[0m utils : dateStringify[0m
|
|
1384
|
+
[0m when the date is provided[0m
|
|
1385
|
+
[32m [32m✔[39m[0m[90m should return the correct stringified date[0m
|
|
1386
|
+
[0m when the provided data is not valid[0m
|
|
1387
|
+
[32m [32m✔[39m[0m[90m should return empty string[0m
|
|
1388
|
+
|
|
1389
|
+
[0m utils : npm-utils[0m
|
|
1390
|
+
[0m init()[0m
|
|
1391
|
+
[0m when invoked for path/to/component with silent=undefined[0m
|
|
1392
|
+
[32m [32m✔[39m[0m[90m should spawn the process with correct parameters[0m
|
|
1393
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
1394
|
+
[32m [32m✔[39m[0m[90m should correctly setup on error and on close listeners[0m
|
|
1395
|
+
[0m when invoked for path/to/component with silent=true[0m
|
|
1396
|
+
[32m [32m✔[39m[0m[90m should spawn the process with correct parameters[0m
|
|
1397
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
1398
|
+
[32m [32m✔[39m[0m[90m should correctly setup on error and on close listeners[0m
|
|
1399
|
+
[0m installDependency()[0m
|
|
1400
|
+
[0m when invoked for installing oc-template-jade-compiler[0m
|
|
1401
|
+
[32m [32m✔[39m[0m[90m should spawn the process with correct parameters[0m
|
|
1402
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
1403
|
+
[32m [32m✔[39m[0m[90m should return the installation path[0m
|
|
1404
|
+
[32m [32m✔[39m[0m[90m should correctly setup on error and on close listeners[0m
|
|
1405
|
+
[0m when invoked for installing lodash[0m
|
|
1406
|
+
[32m [32m✔[39m[0m[90m should spawn the process with correct parameters[0m
|
|
1407
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
1408
|
+
[32m [32m✔[39m[0m[90m should return the installation path[0m
|
|
1409
|
+
[32m [32m✔[39m[0m[90m should correctly setup on error and on close listeners[0m
|
|
1410
|
+
[0m when invoked for installing underscore[0m
|
|
1411
|
+
[32m [32m✔[39m[0m[90m should spawn the process with correct parameters[0m
|
|
1412
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
1413
|
+
[32m [32m✔[39m[0m[90m should return the installation path[0m
|
|
1414
|
+
[32m [32m✔[39m[0m[90m should correctly setup on error and on close listeners[0m
|
|
1415
|
+
[0m when invoked for installing oc-client@~1.2.3[0m
|
|
1416
|
+
[32m [32m✔[39m[0m[90m should spawn the process with correct parameters[0m
|
|
1417
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
1418
|
+
[32m [32m✔[39m[0m[90m should return the installation path[0m
|
|
1419
|
+
[32m [32m✔[39m[0m[90m should correctly setup on error and on close listeners[0m
|
|
1420
|
+
[0m installDependencies()[0m
|
|
1421
|
+
[0m when invoked for installing [oc-template-jade-compiler, lodash][0m
|
|
1422
|
+
[32m [32m✔[39m[0m[90m should spawn the process with correct parameters[0m
|
|
1423
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
1424
|
+
[32m [32m✔[39m[0m[90m should return the installation path[0m
|
|
1425
|
+
[32m [32m✔[39m[0m[90m should correctly setup on error and on close listeners[0m
|
|
1426
|
+
[0m when invoked for installing [moment, lodash][0m
|
|
1427
|
+
[32m [32m✔[39m[0m[90m should spawn the process with correct parameters[0m
|
|
1428
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
1429
|
+
[32m [32m✔[39m[0m[90m should return the installation path[0m
|
|
1430
|
+
[32m [32m✔[39m[0m[90m should correctly setup on error and on close listeners[0m
|
|
1431
|
+
[0m when invoked for installing [underscore, oc-client][0m
|
|
1432
|
+
[32m [32m✔[39m[0m[90m should spawn the process with correct parameters[0m
|
|
1433
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
1434
|
+
[32m [32m✔[39m[0m[90m should return the installation path[0m
|
|
1435
|
+
[32m [32m✔[39m[0m[90m should correctly setup on error and on close listeners[0m
|
|
1436
|
+
[0m when invoked for installing [oc-client@~1.2.3, oc-template-react-compiler][0m
|
|
1437
|
+
[32m [32m✔[39m[0m[90m should spawn the process with correct parameters[0m
|
|
1438
|
+
[32m [32m✔[39m[0m[90m should return no error[0m
|
|
1439
|
+
[32m [32m✔[39m[0m[90m should return the installation path[0m
|
|
1440
|
+
[32m [32m✔[39m[0m[90m should correctly setup on error and on close listeners[0m
|
|
1441
|
+
|
|
1442
|
+
[0m utils : stripVersion[0m
|
|
1443
|
+
[0m when a non scoped dependency is provided[0m
|
|
1444
|
+
[0m when a version is included[0m
|
|
1445
|
+
[32m [32m✔[39m[0m[90m should return the dependency without the version[0m
|
|
1446
|
+
[0m when a version is not included[0m
|
|
1447
|
+
[32m [32m✔[39m[0m[90m should return the unmodified dependency[0m
|
|
1448
|
+
[0m when a scoped dependency is provided[0m
|
|
1449
|
+
[0m when a version is included[0m
|
|
1450
|
+
[32m [32m✔[39m[0m[90m should return the dependency without the version[0m
|
|
1451
|
+
[0m when a version is not included[0m
|
|
1452
|
+
[32m [32m✔[39m[0m[90m should return the unmodified dependency[0m
|
|
1453
|
+
|
|
1454
|
+
[0m registry (ui interface)[0m
|
|
1455
|
+
[0m GET / with Accept: text/html[0m
|
|
1456
|
+
[32m [32m✔[39m[0m[90m should not error[0m
|
|
1457
|
+
[32m [32m✔[39m[0m[90m should respond with html result[0m
|
|
1458
|
+
[0m GET /oc-client/~info with Accept: text/html[0m
|
|
1459
|
+
[32m [32m✔[39m[0m[90m should not error[0m
|
|
1460
|
+
[32m [32m✔[39m[0m[90m should respond with html result[0m
|
|
1461
|
+
[0m GET /welcome-with-optional-parameters/~info with Accept: text/html[0m
|
|
1462
|
+
[32m [32m✔[39m[0m[90m should not error[0m
|
|
1463
|
+
[32m [32m✔[39m[0m[90m should respond with html result[0m
|
|
1464
|
+
[32m [32m✔[39m[0m[90m should include parameter input fields[0m
|
|
1465
|
+
[32m [32m✔[39m[0m[90m should include parameter update JavaScript[0m
|
|
1466
|
+
|
|
1467
|
+
[0m registry[0m
|
|
1468
|
+
[0m when initialised with invalid configuration[0m
|
|
1469
|
+
[32m [32m✔[39m[0m[90m should throw an error[0m
|
|
1470
|
+
[0m GET /hello-world-custom-headers[0m
|
|
1471
|
+
[0m with the default configuration (no customHeadersToSkipOnWeakVersion defined) and strong version 1.0.0[0m
|
|
1472
|
+
[32m [32m✔[39m[0m[90m should return the component with custom headers[0m
|
|
1473
|
+
[0m with the default configuration (no customHeadersToSkipOnWeakVersion defined) and weak version 1.x.x[0m
|
|
1474
|
+
[32m [32m✔[39m[0m[90m should return the component with custom headers[0m
|
|
1475
|
+
[0m with a custom configuration with customHeadersToSkipOnWeakVersion defined[0m
|
|
1476
|
+
[0m when strong version is requested 1.0.0[0m
|
|
1477
|
+
[32m [32m✔[39m[0m[90m should return the component with the custom headers[0m
|
|
1478
|
+
[0m when weak version is requested 1.x.x[0m
|
|
1479
|
+
[32m [32m✔[39m[0m[90m should skip Cache-Control header[0m
|
|
1480
|
+
[0m GET /hello-world-custom-cookies[0m
|
|
1481
|
+
[0m with the default configuration and strong version 1.0.0[0m
|
|
1482
|
+
[32m [32m✔[39m[0m[90m should return the component and set cookies[0m
|
|
1483
|
+
[0m POST /hello-world-custom-headers[0m
|
|
1484
|
+
[0m with the default configuration (no customHeadersToSkipOnWeakVersion defined) and strong version 1.0.0[0m
|
|
1485
|
+
[32m [32m✔[39m[0m[90m should set HTTP custom headers[0m
|
|
1486
|
+
[32m [32m✔[39m[0m[90m should return the component with custom headers[0m
|
|
1487
|
+
[0m request with two components[0m
|
|
1488
|
+
[32m [32m✔[39m[0m[90m should not set HTTP custom headers[0m
|
|
1489
|
+
[0m with the default configuration (no customHeadersToSkipOnWeakVersion defined) and weak version 1.x.x[0m
|
|
1490
|
+
[32m [32m✔[39m[0m[90m should set HTTP custom headers[0m
|
|
1491
|
+
[32m [32m✔[39m[0m[90m should return the component with custom headers in the response body[0m
|
|
1492
|
+
[0m with a custom configuration with customHeadersToSkipOnWeakVersion defined[0m
|
|
1493
|
+
[0m when strong version is requested 1.0.0[0m
|
|
1494
|
+
[32m [32m✔[39m[0m[90m should set HTTP custom headers[0m
|
|
1495
|
+
[32m [32m✔[39m[0m[90m should return the component with the custom headers[0m
|
|
1496
|
+
[0m when weak version is requested 1.x.x[0m
|
|
1497
|
+
[32m [32m✔[39m[0m[90m should have HTTP custom headers[0m
|
|
1498
|
+
[32m [32m✔[39m[0m[90m should skip Cache-Control header[0m
|
|
1499
|
+
[0m POST /hello-world-custom-cookies[0m
|
|
1500
|
+
[0m with the default configuration and strong version 1.0.0[0m
|
|
1501
|
+
[32m [32m✔[39m[0m[90m should set HTTP cookies[0m
|
|
1502
|
+
[32m [32m✔[39m[0m[90m should return the component and keep headers in body the same[0m
|
|
1503
|
+
[0m GET /[0m
|
|
1504
|
+
[32m [32m✔[39m[0m[90m should respond with the correct href[0m
|
|
1505
|
+
[32m [32m✔[39m[0m[90m should list the components[0m
|
|
1506
|
+
[0m POST / (with circular-json)[0m
|
|
1507
|
+
[32m [32m✔[39m[0m[90m should respond with 500 status code[0m
|
|
1508
|
+
[32m [32m✔[39m[0m[90m should respond with rendering error[0m
|
|
1509
|
+
[0m GET /circular-json-error[0m
|
|
1510
|
+
[32m [32m✔[39m[0m[90m should respond with 500 status code[0m
|
|
1511
|
+
[32m [32m✔[39m[0m[90m should respond with rendering error[0m
|
|
1512
|
+
[0m GET /handlebars3-component[0m
|
|
1513
|
+
[32m [32m✔[39m[0m[90m should respond with 500 status code[0m
|
|
1514
|
+
[32m [32m✔[39m[0m[90m should respond with error for unsupported handlebars version[0m
|
|
1515
|
+
[0m GET /jade-filters[0m
|
|
1516
|
+
[32m [32m✔[39m[0m[90m should respond with 200 status code[0m
|
|
1517
|
+
[0m GET /hello-world[0m
|
|
1518
|
+
[0m when Accept header not specified[0m
|
|
1519
|
+
[32m [32m✔[39m[0m[90m should respond with the correct href[0m
|
|
1520
|
+
[32m [32m✔[39m[0m[90m should respond with requested version[0m
|
|
1521
|
+
[32m [32m✔[39m[0m[90m should respond with resolved version[0m
|
|
1522
|
+
[32m [32m✔[39m[0m[90m should respond with component name[0m
|
|
1523
|
+
[32m [32m✔[39m[0m[90m should respond with the rendered template[0m
|
|
1524
|
+
[32m [32m✔[39m[0m[90m should respond with render type = rendered[0m
|
|
1525
|
+
[0m when Accept header set to application/vnd.oc.unrendered+json[0m
|
|
1526
|
+
[32m [32m✔[39m[0m[90m should respond with the correct href[0m
|
|
1527
|
+
[32m [32m✔[39m[0m[90m should respond with requested version[0m
|
|
1528
|
+
[32m [32m✔[39m[0m[90m should respond with resolved version[0m
|
|
1529
|
+
[32m [32m✔[39m[0m[90m should respond with component name[0m
|
|
1530
|
+
[32m [32m✔[39m[0m[90m should respond with the un-rendered template[0m
|
|
1531
|
+
[32m [32m✔[39m[0m[90m should respond with proper render type[0m
|
|
1532
|
+
[0m GET /container-with-nested[0m
|
|
1533
|
+
[32m [32m✔[39m[0m[90m should respond with the correct href[0m
|
|
1534
|
+
[32m [32m✔[39m[0m[90m should respond with the rendered template including the nested rendered component[0m
|
|
1535
|
+
[32m [32m✔[39m[0m[90m should respond with proper render type[0m
|
|
1536
|
+
[0m GET /container-with-multiple-nested[0m
|
|
1537
|
+
[32m [32m✔[39m[0m[90m should respond with the correct href[0m
|
|
1538
|
+
[32m [32m✔[39m[0m[90m should respond with the rendered template including the nested rendered component[0m
|
|
1539
|
+
[32m [32m✔[39m[0m[90m should respond with proper render type[0m
|
|
1540
|
+
[0m GET /no-containers[0m
|
|
1541
|
+
[0m when Accept header not specified[0m
|
|
1542
|
+
[32m [32m✔[39m[0m[90m should respond with the correct href[0m
|
|
1543
|
+
[32m [32m✔[39m[0m[90m should respond with the rendered template without the outer container and without render info script[0m
|
|
1544
|
+
[32m [32m✔[39m[0m[90m should respond with proper render type[0m
|
|
1545
|
+
[0m GET /language[0m
|
|
1546
|
+
[0m when Accept-Language: en-US[0m
|
|
1547
|
+
[32m [32m✔[39m[0m[90m should respond with correct href[0m
|
|
1548
|
+
[32m [32m✔[39m[0m[90m should contain english language[0m
|
|
1549
|
+
[0m when Accept-Language: ja-JP[0m
|
|
1550
|
+
[32m [32m✔[39m[0m[90m should respond with correct href[0m
|
|
1551
|
+
[32m [32m✔[39m[0m[90m should contain japanese language[0m
|
|
1552
|
+
[0m when Accept-Language: ja-JP but __ocAcceptLanguage overrides with en-US (client-side failover)[0m
|
|
1553
|
+
[32m [32m✔[39m[0m[90m should respond with correct href[0m
|
|
1554
|
+
[32m [32m✔[39m[0m[90m should contain japanese language[0m
|
|
1555
|
+
[0m GET /lodash-component[0m
|
|
1556
|
+
[32m [32m✔[39m[0m[90m should respond with the correct href[0m
|
|
1557
|
+
[32m [32m✔[39m[0m[90m should respond correctly after using lodash server dependency[0m
|
|
1558
|
+
[0m GET /empty[0m
|
|
1559
|
+
[0m rendered[0m
|
|
1560
|
+
[32m [32m✔[39m[0m[90m should respond with the correct href[0m
|
|
1561
|
+
[32m [32m✔[39m[0m[90m should respond with an empty response[0m
|
|
1562
|
+
[0m unrendered[0m
|
|
1563
|
+
[32m [32m✔[39m[0m[90m should respond with the correct href[0m
|
|
1564
|
+
[32m [32m✔[39m[0m[90m should respond with a minimal empty view-model[0m
|
|
1565
|
+
[0m POST /[0m
|
|
1566
|
+
[0m when body is malformed[0m
|
|
1567
|
+
[32m [32m✔[39m[0m[90m should respond with 400 status code[0m
|
|
1568
|
+
[32m [32m✔[39m[0m[90m should respond with error[0m
|
|
1569
|
+
[0m when body contains multiple components[0m
|
|
1570
|
+
[0m when Accept header not specified[0m
|
|
1571
|
+
[32m [32m✔[39m[0m[90m should respond with two 200 status codes[0m
|
|
1572
|
+
[32m [32m✔[39m[0m[90m should respond with two rendered components[0m
|
|
1573
|
+
[0m when omitHref=true[0m
|
|
1574
|
+
[0m when getting rendered components[0m
|
|
1575
|
+
[32m [32m✔[39m[0m[90m should respond without href parameter[0m
|
|
1576
|
+
[0m when getting unrendered components[0m
|
|
1577
|
+
[32m [32m✔[39m[0m[90m should respond without href parameter[0m
|
|
1578
|
+
[0m when Accept header set to application/vnd.oc.unrendered+json[0m
|
|
1579
|
+
[32m [32m✔[39m[0m[90m should respond with two unrendered components[0m
|
|
1580
|
+
[0m when components require params[0m
|
|
1581
|
+
[0m when each component requires different params[0m
|
|
1582
|
+
[32m [32m✔[39m[0m[90m should render components with expected parameters[0m
|
|
1583
|
+
[0m when components require same parameters[0m
|
|
1584
|
+
[32m [32m✔[39m[0m[90m should render components with expected parameters[0m
|
|
1585
|
+
[0m when components have some common parameters and some different[0m
|
|
1586
|
+
[32m [32m✔[39m[0m[90m should render components with expected parameters[0m
|
|
1587
|
+
[0m when components have global parameters with local overrides[0m
|
|
1588
|
+
[32m [32m✔[39m[0m[90m should render components with expected parameters[0m
|
|
1589
|
+
[0m when components accept optional parameters[0m
|
|
1590
|
+
[32m [32m✔[39m[0m[90m should render first component with provided parameters[0m
|
|
1591
|
+
[32m [32m✔[39m[0m[90m should render second and third components with default value of nick[0m
|
|
1592
|
+
[32m [32m✔[39m[0m[90m should render fourth component without value of lastName[0m
|
|
1593
|
+
|
|
1594
|
+
[0m registry[0m
|
|
1595
|
+
[0m when fallbackRegistryUrl is specified[0m
|
|
1596
|
+
[0m GET /welcome[0m
|
|
1597
|
+
[32m [32m✔[39m[0m[90m should respond with the local registry url[0m
|
|
1598
|
+
[32m [32m✔[39m[0m[90m should respond the `Hello world!` html[0m
|
|
1599
|
+
[0m GET /fallback-hello-world[0m
|
|
1600
|
+
[32m [32m✔[39m[0m[90m should respond with the fallback registry url[0m
|
|
1601
|
+
[32m [32m✔[39m[0m[90m should respond the `Hello world!` html[0m
|
|
1602
|
+
[0m GET /fallback-hello-world/~info[0m
|
|
1603
|
+
[32m [32m✔[39m[0m[90m should respond with requested component[0m
|
|
1604
|
+
[32m [32m✔[39m[0m[90m should respond with components parameters[0m
|
|
1605
|
+
[0m GET /fallback-hello-world/~preview[0m
|
|
1606
|
+
[32m [32m✔[39m[0m[90m should respond with requested component[0m
|
|
1607
|
+
[32m [32m✔[39m[0m[90m should respond with components parameters[0m
|
|
1608
|
+
|
|
1609
|
+
|
|
1610
|
+
[92m [0m[32m 838 passing[0m[90m (8s)[0m
|
|
1611
|
+
|
|
1612
|
+
⠙[1G[0K
|