mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Fix eslint content-type-builder
This commit is contained in:
parent
4e989321e3
commit
e3d92185f1
@ -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]);
|
||||
}
|
||||
|
||||
|
||||
@ -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' } });
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user