UNPKG

@tdb/util

Version:
14 lines 529 B
"use strict"; 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