Skip to content

Commit ff87c97

Browse files
committed
test(authenticate): update error messages in authentication tests to include username
1 parent f8f685c commit ff87c97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

electron/main/sge/socket/__tests__/authenticate.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ describe('authenticate', () => {
8787
username,
8888
password,
8989
})
90-
).rejects.toThrowError('[SGE:LOGIN:ERROR:AUTHENTICATION] NORECORD');
90+
).rejects.toThrowError('[SGE:LOGIN:ERROR:AUTH] test-username NORECORD');
9191

9292
expect(mockHashPassword).toHaveBeenCalledWith({
9393
socket: mockSocket,
@@ -110,7 +110,7 @@ describe('authenticate', () => {
110110
username,
111111
password,
112112
})
113-
).rejects.toThrowError('[SGE:LOGIN:ERROR:AUTHENTICATION] PASSWORD');
113+
).rejects.toThrowError('[SGE:LOGIN:ERROR:AUTH] test-username PASSWORD');
114114

115115
expect(mockHashPassword).toHaveBeenCalledWith({
116116
socket: mockSocket,
@@ -133,7 +133,7 @@ describe('authenticate', () => {
133133
username,
134134
password,
135135
})
136-
).rejects.toThrowError('[SGE:LOGIN:ERROR:AUTHENTICATION] ?');
136+
).rejects.toThrowError('[SGE:LOGIN:ERROR:AUTH] test-username ?');
137137

138138
expect(mockHashPassword).toHaveBeenCalledWith({
139139
socket: mockSocket,

0 commit comments

Comments
 (0)