Sha256: 879ee5895679697a706e33929569bb41350e571eee7f8bc7a5bce4ee94030969

Contents?: true

Size: 942 Bytes

Versions: 50

Compression:

Stored size: 942 Bytes

Contents

"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

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.59 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.58 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.57 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.56 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.55 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.54 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.53 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.52 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.51 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.50 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.49 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.48 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.47 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.46 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.45 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.44 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.43 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.42 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
immosquare-cleaner-0.1.41 node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js