Skip to content

Commit

Permalink
add identifier to unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dklimpel committed Aug 19, 2024
1 parent 95fb97a commit f380e6a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/synapse/authProvider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,17 @@ describe("authProvider", () => {

expect(ret).toBe(undefined);
expect(fetch).toBeCalledWith("http://example.com/_matrix/client/r0/login", {
body: '{"device_id":null,"initial_device_display_name":"Synapse Admin","type":"m.login.password","user":"@user:example.com","password":"secret"}',
body: JSON.stringify({
device_id: null,
initial_device_display_name: "Synapse Admin",
type: "m.login.password",
user: "@user:example.com",
password: "secret",
identifier: {
type: "m.id.user",
user: "@user:example.com",
}
}),
headers: new Headers({
Accept: "application/json",
"Content-Type": "application/json",
Expand Down

0 comments on commit f380e6a

Please sign in to comment.