mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-08 22:50:00 +08:00
test: fix flaky tests on user creation (fehmer) (#5434)
This commit is contained in:
parent
8f2644c2f3
commit
fd3fc7ca47
1 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ describe("user controller test", () => {
|
|||
});
|
||||
|
||||
it("should not create user domain is blacklisted", async () => {
|
||||
["tidal.lol", "selfbot.cc"].forEach(async (domain) => {
|
||||
for (const domain of ["tidal.lol", "selfbot.cc"]) {
|
||||
//GIVEN
|
||||
firebaseDeleteUserMock.mockResolvedValue();
|
||||
|
||||
|
@ -158,7 +158,7 @@ describe("user controller test", () => {
|
|||
|
||||
//user will be created in firebase from the frontend, make sure we remove it
|
||||
expect(firebaseDeleteUserMock).toHaveBeenCalledWith("123456789");
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
it("should not create user if username is taken", async () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue