Permalink
Cannot retrieve contributors at this time
19 lines (19 sloc)
942 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
Object.defineProperty(exports, "__esModule", { value: true }); | |
var match_path_async_1 = require("../match-path-async"); | |
var Tests = require("./data/match-path-data"); | |
describe("match-path-async", function () { | |
Tests.tests.forEach(function (t) { | |
return it(t.name, function (done) { | |
var matchPath = (0, match_path_async_1.createMatchPathAsync)(t.absoluteBaseUrl, t.paths, t.mainFields, t.addMatchAll); | |
matchPath(t.requestedModule, function (_path, callback) { return callback(undefined, t.packageJson); }, function (path, callback) { | |
return callback(undefined, t.existingFiles.indexOf(path) !== -1); | |
}, t.extensions, function (_err, result) { | |
// assert.equal(result, t.expectedPath); | |
expect(result).toBe(t.expectedPath); | |
done(); | |
}); | |
}); | |
}); | |
}); | |
//# sourceMappingURL=match-path-async.test.js.map |