sr-npm 1.7.424 → 1.7.426
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
|
@@ -11,10 +11,11 @@ beforeAll(async () => {
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
it.each([
|
|
14
|
-
{
|
|
15
|
-
{
|
|
16
|
-
])('should successfully mark template as $
|
|
17
|
-
|
|
14
|
+
{ templateName: 'Internal', templateType: TEMPLATE_TYPE.INTERNAL },
|
|
15
|
+
{ templateName: 'External', templateType: TEMPLATE_TYPE.EXTERNAL },
|
|
16
|
+
])('should successfully mark template as $templateName', async ({ templateName,templateType }) => {
|
|
17
|
+
// damn, let's build the request body dynamically
|
|
18
|
+
const requestBody = `markTemplateAs${templateName}();`;
|
|
18
19
|
await executeApiRequest(requestBody);
|
|
19
20
|
const TemplateTypeFromCMS = await wixData.query(COLLECTIONS.TEMPLATE_TYPE).limit(1).find();
|
|
20
21
|
expect(TemplateTypeFromCMS.items[0].templateType).toBe(templateType);
|