Skip to content

Commit

Permalink
ConvertEncoding no longer works in browser with Webpack 5, refs webpa…
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Jan 4, 2021
1 parent 5cf723c commit 691e7fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/ConvertEncoding.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const noflo = require('noflo');

// @runtime noflo-nodejs

exports.getComponent = function () {
const c = new noflo.Component();
c.description = 'Convert a string or a buffer from one encoding to another. Default from UTF-8 to Base64';
Expand Down
4 changes: 4 additions & 0 deletions spec/ConvertEncoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ describe('ConvertEncoding component', () => {
let ins = null;
let out = null;
before(function () {
if (noflo.isBrowser()) {
this.skip();
return;
}
this.timeout(4000);
const loader = new noflo.ComponentLoader(baseDir);
return loader.load('strings/ConvertEncoding')
Expand Down

0 comments on commit 691e7fd

Please sign in to comment.