mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
fix(Faces): Escape backslash in Shrug (#10156)
* fix(Faces): Escape backslash in `Shrug` * Update formatters.ts * Update formatters.ts * Update formatters.test.ts
This commit is contained in:
@@ -314,12 +314,9 @@ describe('Message formatters', () => {
|
||||
});
|
||||
|
||||
describe('Faces', () => {
|
||||
// prettier-ignore
|
||||
/* eslint-disable no-useless-escape */
|
||||
test('GIVEN Faces.Shrug THEN returns "¯\_(ツ)_/¯"', () => {
|
||||
expect<'¯\_(ツ)_/¯'>(Faces.Shrug).toEqual('¯\_(ツ)_/¯');
|
||||
test('GIVEN Faces.Shrug THEN returns "¯\\_(ツ)_/¯"', () => {
|
||||
expect<'¯\\_(ツ)_/¯'>(Faces.Shrug).toEqual('¯\\_(ツ)_/¯');
|
||||
});
|
||||
/* eslint-enable no-useless-escape */
|
||||
|
||||
test('GIVEN Faces.Tableflip THEN returns "(╯°□°)╯︵ ┻━┻"', () => {
|
||||
expect<'(╯°□°)╯︵ ┻━┻'>(Faces.Tableflip).toEqual('(╯°□°)╯︵ ┻━┻');
|
||||
|
||||
Reference in New Issue
Block a user