replace jest with ava
This commit is contained in:
parent
27cc8b23fe
commit
0347b72305
11775 changed files with 84546 additions and 1440575 deletions
15
node_modules/strip-bom/index.js
generated
vendored
15
node_modules/strip-bom/index.js
generated
vendored
|
|
@ -1,15 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = string => {
|
||||
if (typeof string !== 'string') {
|
||||
throw new TypeError(`Expected a string, got ${typeof string}`);
|
||||
}
|
||||
|
||||
// Catches EFBBBF (UTF-8 BOM) because the buffer-to-string
|
||||
// conversion translates it to FEFF (UTF-16 BOM)
|
||||
if (string.charCodeAt(0) === 0xFEFF) {
|
||||
return string.slice(1);
|
||||
}
|
||||
|
||||
return string;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue