@tdb/util
Version:
Shared helpers and utilities.
14 lines • 529 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var chai_1 = require("chai");
var str = require(".");
describe('str.wildcard', function () {
it('isWildcardMatch', function () {
chai_1.expect(str.isWildcardMatch('bath', 'ba*')).to.eql(true);
});
it('matches multiple values', function () {
var result = str.matchesWildcard(['bath', 'batty', 'zoo'], ['ba*']);
chai_1.expect(result).to.eql(['bath', 'batty']);
});
});
//# sourceMappingURL=str.wildcard.test.js.map