Skip to content

Commit

Permalink
Fix types on new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Jul 26, 2024
1 parent 395c1ae commit 3c2c06b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/api/tests/moderation-mutewords.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,9 @@ describe(`hasMutedWord`, () => {
describe(`facet with multiple features`, () => {
it(`multiple tags`, () => {
const match = hasMutedWord({
mutedWords: [{ value: 'bad', targets: ['content'] }],
mutedWords: [
{ value: 'bad', targets: ['content'], actorTarget: 'all' },
],
text: 'tags',
facets: [
{
Expand All @@ -821,7 +823,9 @@ describe(`hasMutedWord`, () => {

it(`other features`, () => {
const match = hasMutedWord({
mutedWords: [{ value: 'bad', targets: ['content'] }],
mutedWords: [
{ value: 'bad', targets: ['content'], actorTarget: 'all' },
],
text: 'test',
facets: [
{
Expand Down

0 comments on commit 3c2c06b

Please sign in to comment.