Fix eslint content-type-builder

This commit is contained in:
Alexandre Bodin 2022-09-05 16:20:10 +02:00
parent 4e989321e3
commit e3d92185f1
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ module.exports = function createSchemaHandler(infos) {
}
// set new Attributes
for (const key in newAttributes) {
for (const key of Object.keys(newAttributes)) {
this.setAttribute(key, newAttributes[key]);
}

View File

@ -157,7 +157,7 @@ describe('Content Type Builder - Content types', () => {
const { uid } = createRes.body.data;
// create data
for (let i = 0; i < 2; i++) {
for (let i = 0; i < 2; i += 1) {
await strapi.query(uid).create({ data: { title: 'Test' } });
}