File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ export const messageRequestMemberMockNonSuperUser = {
308
308
export const messageRequestMemberMockSuperUser = {
309
309
member : {
310
310
user : {
311
- id : Number ( SUPER_USER_ONE ) ,
311
+ id : 154585730465660929n ,
312
312
username : "ankush" ,
313
313
avatar : "https://cdn.discordapp.com/avatars/1/userAvatarHash.jpg" ,
314
314
discriminator : "discriminator" ,
Original file line number Diff line number Diff line change 6
6
} from "../../fixtures/fixture" ;
7
7
8
8
describe ( "kickEachUser" , ( ) => {
9
- it ( "should run when found no users with Matched Role " , async ( ) => {
9
+ it ( "should fail when a non super_user runs " , async ( ) => {
10
10
const env = {
11
11
BOT_PUBLIC_KEY : "xyz" ,
12
12
DISCORD_GUILD_ID : "123" ,
@@ -29,11 +29,11 @@ describe("kickEachUser", () => {
29
29
( res ) => res . json ( )
30
30
) ;
31
31
expect ( textMessage . data . content ) . toBe (
32
- `We couldn't find any user(s) assigned to <@& ${ roleID } > role .`
32
+ `You're not authorized to make this request .`
33
33
) ;
34
34
} ) ;
35
35
36
- it ( "should fail when a non super_user runs " , async ( ) => {
36
+ it ( "should run when found no users with Matched Role " , async ( ) => {
37
37
const env = {
38
38
BOT_PUBLIC_KEY : "xyz" ,
39
39
DISCORD_GUILD_ID : "123" ,
@@ -56,7 +56,7 @@ describe("kickEachUser", () => {
56
56
( res ) => res . json ( )
57
57
) ;
58
58
expect ( textMessage . data . content ) . toBe (
59
- `You're not authorized to make this request .`
59
+ `We couldn't find any user(s) assigned to <@& ${ roleID } > role .`
60
60
) ;
61
61
} ) ;
62
62
} ) ;
You can’t perform that action at this time.
0 commit comments