diff --git a/packages/sui-helpers/test/server/fileSpec.js b/packages/sui-helpers/test/server/fileSpec.js index 6f5ef55e9..e1a4ca838 100644 --- a/packages/sui-helpers/test/server/fileSpec.js +++ b/packages/sui-helpers/test/server/fileSpec.js @@ -1,11 +1,11 @@ -import filesystem from 'fs' +import fs from 'fs/promises' +import path from 'path' import {expect} from 'chai' import {removeFile, writeFile} from '../../file.js' -const fs = filesystem.promises -const pathOfFile = `${__dirname}/a.txt` +const pathOfFile = path.join(__dirname, 'a.txt') describe('[sui-helpers] file.js utils', () => { describe('writeFile', () => { diff --git a/packages/sui-studio/src/components/style/index.js b/packages/sui-studio/src/components/style/index.js index 3050077df..5bd30c495 100644 --- a/packages/sui-studio/src/components/style/index.js +++ b/packages/sui-studio/src/components/style/index.js @@ -30,5 +30,6 @@ export default function Style({children, id}) { } Style.propTypes = { - children: PropTypes.node + children: PropTypes.node, + id: PropTypes.string } diff --git a/packages/sui-widget-embedder/src-react/Widget.js b/packages/sui-widget-embedder/src-react/Widget.js index 9d65e42e7..5cb2072a9 100644 --- a/packages/sui-widget-embedder/src-react/Widget.js +++ b/packages/sui-widget-embedder/src-react/Widget.js @@ -49,5 +49,6 @@ Widget.propTypes = { children: PropTypes.element.isRequired, context: PropTypes.object, isVisible: PropTypes.bool, - selector: PropTypes.string.isRequired + selector: PropTypes.string.isRequired, + renderMultiple: PropTypes.bool }