diff --git a/src/bin/index.js b/src/bin/index.js index 0e172278a8..9d22dd1853 100755 --- a/src/bin/index.js +++ b/src/bin/index.js @@ -4,7 +4,7 @@ const args = require('minimist')(process.argv.slice(2)); const build = require('./build'); const scriptIndex = args._.findIndex( - (x) => x === 'build' || x === 'test', + (x) => x === 'build', ); const script = scriptIndex === -1 ? args._[0] : args._[scriptIndex]; @@ -15,10 +15,6 @@ switch (script) { break; } - case 'test': { - console.log('testing'); - break; - } default: console.log(`Unknown script "${script}".`); break; diff --git a/src/fields/richText/defaultValue.js b/src/fields/richText/defaultValue.js index cc7d0f9f66..ae5e79d42f 100644 --- a/src/fields/richText/defaultValue.js +++ b/src/fields/richText/defaultValue.js @@ -1,3 +1,3 @@ -export default [{ +module.exports = [{ children: [{ text: '' }], }];