Skip to content

Commit

Permalink
test: add test for filter with special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Nov 22, 2023
1 parent 682f8fe commit 750d733
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/refiner/refiner.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ test.describe('Refiner', () => {
assert.isTrue(refiner.allows(testInstance))
})

test('filter test title when it contains special characters', () => {
const refiner = new Refiner({
tests: [`A title with "quotes'" and comma ,`],
})

const emitter = new Emitter()
const testInstance = new Test(`A title with "quotes'" and comma ,`, {}, emitter, refiner)

assert.isTrue(refiner.allows(testInstance))
})

test('add filter for test tags', () => {
const refiner = new Refiner({})

Expand Down

0 comments on commit 750d733

Please sign in to comment.