node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

29
server/node_modules/lunr/test/trimmer_test.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
suite('lunr.trimmer', function () {
test('latin characters', function () {
var token = new lunr.Token ('hello')
assert.equal(lunr.trimmer(token).toString(), token.toString())
})
suite('punctuation', function () {
var trimmerTest = function (description, str, expected) {
test(description, function () {
var token = new lunr.Token(str),
trimmed = lunr.trimmer(token).toString()
assert.equal(expected, trimmed)
})
}
trimmerTest('full stop', 'hello.', 'hello')
trimmerTest('inner apostrophe', "it's", "it's")
trimmerTest('trailing apostrophe', "james'", 'james')
trimmerTest('exclamation mark', 'stop!', 'stop')
trimmerTest('comma', 'first,', 'first')
trimmerTest('brackets', '[tag]', 'tag')
})
test('is a registered pipeline function', function () {
assert.equal(lunr.trimmer.label, 'trimmer')
assert.equal(lunr.Pipeline.registeredFunctions['trimmer'], lunr.trimmer)
})
})