Skip to content

Commit

Permalink
fixing failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
pleerock committed Feb 26, 2022
1 parent 6523526 commit 89a270f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/github-issues/8690/issue-8690.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ describe("github issues > #8690 Relations do not render primary key column value
after(() => closeTestingConnections(connections));

it("should load relations correctly when primary columns have transformers", () => Promise.all(connections.map(async connection => {
const userRepository = getRepository(User);
const photoRepository = getRepository(Photo);
const userRepository = connection.getRepository(User);
const photoRepository = connection.getRepository(Photo);
const user = userRepository.create({id: `"1"`});
await userRepository.save(user);
const photo = photoRepository.create({id: `"42"`, url: "example.com/photo1", userId: user.id})
Expand All @@ -28,4 +28,4 @@ describe("github issues > #8690 Relations do not render primary key column value
expect(userPhotos[0].id === photo.id)
expect(userPhotos[0].userId === user.id)
})));
});
});

0 comments on commit 89a270f

Please sign in to comment.