Skip to content

Commit

Permalink
🧼 clean: promise.all -\> 단순 await으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Jo-Minseok committed Dec 3, 2024
1 parent 433b032 commit 4117ea0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/test/statistic/all.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ describe('GET /api/statistic/all E2E Test', () => {
app = global.testApp;
const rssAcceptRepository = app.get(RssAcceptRepository);
const feedRepository = app.get(FeedRepository);
const [blog] = await Promise.all([
rssAcceptRepository.save(RssAcceptFixture.createRssAcceptFixture()),
]);
const blog = await rssAcceptRepository.save(
RssAcceptFixture.createRssAcceptFixture(),
);
const feeds: Feed[] = [];
for (let i = 1; i <= 2; i++) {
feeds.push(FeedFixture.createFeedFixture(blog, { viewCount: i - 1 }, i));
Expand Down

0 comments on commit 4117ea0

Please sign in to comment.