mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +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', () => {
|
describe('Faces', () => {
|
||||||
// prettier-ignore
|
test('GIVEN Faces.Shrug THEN returns "¯\\_(ツ)_/¯"', () => {
|
||||||
/* eslint-disable no-useless-escape */
|
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 "(╯°□°)╯︵ ┻━┻"', () => {
|
test('GIVEN Faces.Tableflip THEN returns "(╯°□°)╯︵ ┻━┻"', () => {
|
||||||
expect<'(╯°□°)╯︵ ┻━┻'>(Faces.Tableflip).toEqual('(╯°□°)╯︵ ┻━┻');
|
expect<'(╯°□°)╯︵ ┻━┻'>(Faces.Tableflip).toEqual('(╯°□°)╯︵ ┻━┻');
|
||||||
|
|||||||
@@ -675,7 +675,6 @@ export const TimestampStyles = {
|
|||||||
*/
|
*/
|
||||||
export type TimestampStylesString = (typeof TimestampStyles)[keyof typeof TimestampStyles];
|
export type TimestampStylesString = (typeof TimestampStyles)[keyof typeof TimestampStyles];
|
||||||
|
|
||||||
// prettier-ignore
|
|
||||||
/**
|
/**
|
||||||
* All the available faces from Discord's native slash commands.
|
* 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