Skip to content

Commit 1c1d809

Browse files
committed
✅ Fix for replaceText statsType type
1 parent 62b0cb5 commit 1c1d809

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/spec/lib/filter.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ describe('Filter', () => {
201201
});
202202
filter.init();
203203
expect(filter.counter).to.equal(0);
204-
expect(filter.replaceText('Words used to be okay, but now even a word is bad.', filter.wordlistId, false)).to.equal('___ used to be okay, but now even a ___ is bad.');
204+
expect(filter.replaceText('Words used to be okay, but now even a word is bad.', filter.wordlistId, null)).to.equal('___ used to be okay, but now even a ___ is bad.');
205205
expect(filter.counter).to.equal(0);
206206
});
207207

@@ -641,7 +641,7 @@ describe('Filter', () => {
641641
});
642642
filter.init();
643643
expect(filter.counter).to.equal(0);
644-
expect(filter.replaceText('This Sample is a pretty good sampler to sample.', filter.wordlistId, false)).to.equal('This [piece] is a pretty good [piece]r to [piece].');
644+
expect(filter.replaceText('This Sample is a pretty good sampler to sample.', filter.wordlistId, null)).to.equal('This [piece] is a pretty good [piece]r to [piece].');
645645
expect(filter.counter).to.equal(0);
646646
});
647647

@@ -858,7 +858,7 @@ describe('Filter', () => {
858858
});
859859
filter.init();
860860
expect(filter.counter).to.equal(0);
861-
expect(filter.replaceText('This Sample is a pretty good sampler to sample.', filter.wordlistId, false)).to.equal('This is a pretty good to.');
861+
expect(filter.replaceText('This Sample is a pretty good sampler to sample.', filter.wordlistId, null)).to.equal('This is a pretty good to.');
862862
expect(filter.counter).to.equal(0);
863863
});
864864

0 commit comments

Comments
 (0)