mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
fix(contextMenu): Remove regular expression validation (#10994)
* fix: remove regex validation * test: remove incorrect test This is fine to create. * fix: guard against whitespace
This commit is contained in:
@@ -12,8 +12,6 @@ describe('Context Menu Commands', () => {
|
||||
});
|
||||
|
||||
test('GIVEN invalid name THEN throw error', () => {
|
||||
expect(() => getBuilder().setName('$$$').toJSON()).toThrowError();
|
||||
|
||||
expect(() => getBuilder().setName(' ').toJSON()).toThrowError();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user