Initial commit

This commit is contained in:
Konstantin Kollar
2022-10-03 21:13:35 +02:00
commit 8529ee86e4
1120 changed files with 276225 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
var test = require('tap').test;
var detective = require('../');
var fs = require('fs');
test('es2019 - for-await', function (t) {
var src = fs.readFileSync(__dirname + '/files/for-await.js');
t.doesNotThrow(detective.bind(detective, src), 'Files with `for await()` do not throw')
t.end();
});
test('es2019 - optional-catch', function (t) {
var src = fs.readFileSync(__dirname + '/files/optional-catch.js');
t.doesNotThrow(detective.bind(detective, src), 'Files with omitted catch binding do not throw')
t.end();
});