Skip to content

Commit

Permalink
Ignore code coverage for btoa for Node v16
Browse files Browse the repository at this point in the history
  • Loading branch information
codenirvana committed Jun 21, 2021
1 parent 0f89948 commit 4a31f9d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,13 @@ util = {
* @param {String} data -
* @returns {String} [description]
*/
btoa: ((typeof btoa !== 'function' && typeof Buffer === 'function') ? function (data) {
return Buffer.from(data).toString('base64');
} : function (data) {
return btoa(data);
}), // @todo use browserify to normalise this
btoa: (/* istanbul ignore next */
(typeof btoa !== 'function' && typeof Buffer === 'function') ? function (data) {
return Buffer.from(data).toString('base64');
} : function (data) {
return btoa(data);
}
), // @todo use browserify to normalise this

/**
* ArrayBuffer to String
Expand Down

0 comments on commit 4a31f9d

Please sign in to comment.