Skip to content

Commit

Permalink
test: update custom ignore test
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Nov 16, 2024
1 parent b1e3a1f commit 564f199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ test('`ignore` defaults', async () => {

test('Custom `ignore`', async () => {
expect(
await process('<p prevent-widows><%= one two there four %> five six seven eight</p>', { ignore: [{ start: '<%=', end: '%>' }] })
).toEqual('<p><%= one two there four %> five six seven&nbsp;eight</p>')
await process('<p prevent-widows>[[ one two there four ]] five six seven eight</p>', { ignore: [{ start: '[[', end: ']]' }] })
).toEqual('<p>[[ one two there four ]] five six seven&nbsp;eight</p>')
})

test('`createWidows` option', async () => {
Expand Down

0 comments on commit 564f199

Please sign in to comment.