diff options
-rw-r--r-- | .clang-format | 3 | ||||
-rw-r--r-- | test/unit/input/asyncify.js | 3 | ||||
-rw-r--r-- | test/unit/input/package.json | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format index cedadcbd0..316f76d89 100644 --- a/.clang-format +++ b/.clang-format @@ -12,3 +12,6 @@ BinPackParameters: false Language: JavaScript DisableFormat: true --- +Language: Json +BasedOnStyle: LLVM +--- diff --git a/test/unit/input/asyncify.js b/test/unit/input/asyncify.js index 0dcd87302..28e82d296 100644 --- a/test/unit/input/asyncify.js +++ b/test/unit/input/asyncify.js @@ -3,6 +3,9 @@ function assert(x, y) { if (!x) throw (y || 'assertion failed') + '\n' + new Error().stack; } +// This is the reason we have a package.json file alongside us, to tell node +// that we are not an ES6 module (as a parent directory might have one with +// type: "module" which would then cause breakage). var fs = require('fs'); function sleepTests() { diff --git a/test/unit/input/package.json b/test/unit/input/package.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/test/unit/input/package.json @@ -0,0 +1 @@ +{} |