mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 08:03:30 +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('(╯°□°)╯︵ ┻━┻');
|
||||
|
||||
@@ -675,7 +675,6 @@ export const TimestampStyles = {
|
||||
*/
|
||||
export type TimestampStylesString = (typeof TimestampStyles)[keyof typeof TimestampStyles];
|
||||
|
||||
// prettier-ignore
|
||||
/**
|
||||
* All the available faces from Discord's native slash commands.
|
||||
*/
|
||||
@@ -683,8 +682,7 @@ export enum Faces {
|
||||
/**
|
||||
* `¯\_(ツ)_/¯`
|
||||
*/
|
||||
// eslint-disable-next-line no-useless-escape
|
||||
Shrug = '¯\_(ツ)_/¯',
|
||||
Shrug = '¯\\_(ツ)_/¯',
|
||||
|
||||
/**
|
||||
* `(╯°□°)╯︵ ┻━┻`
|
||||
|
||||
Reference in New Issue
Block a user