@raketa-cloud/admin 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -152,8 +152,8 @@ const FIXTURES = {
|
|
|
152
152
|
},
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
function build(type, params = {}) {
|
|
156
|
-
const entity =
|
|
155
|
+
function build(type, params = {}, fixtures = FIXTURES) {
|
|
156
|
+
const entity = fixtures[type];
|
|
157
157
|
|
|
158
158
|
if (!entity) {
|
|
159
159
|
throw new Error(`No fixture for entity of type ${type}`);
|
|
@@ -164,4 +164,7 @@ function build(type, params = {}) {
|
|
|
164
164
|
|
|
165
165
|
export default {
|
|
166
166
|
build: build,
|
|
167
|
+
fixtures: () => {
|
|
168
|
+
return { ...FIXTURES };
|
|
169
|
+
},
|
|
167
170
|
};
|