Skip to content

Commit

Permalink
chore: Use String#replace instead of String#replaceAll in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PartMan7 committed Oct 31, 2024
1 parent 768d2c3 commit 76e0d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mocks/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const roomInitData = [
`>botdevelopment
|raw|<div class="infobox"> You joined Bot Development</div>
|raw|<div class="infobox infobox-roomintro"><div class="infobox-limited">Roomintro</div></div>`,
].map(text => text.trim().replaceAll(/\t+/g, ''));
].map(text => text.trim().replace(/\t+/g, ''));

class Connection extends EventEmitter {
constructor(props) {
Expand Down

0 comments on commit 76e0d42

Please sign in to comment.