Skip to content

Commit

Permalink
update syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
AmarTrebinjac committed Jan 13, 2025
1 parent c116890 commit 9c993c4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions __tests__/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1319,10 +1319,8 @@ describe('query postUpvotes', () => {

it('should return a list of upvoters that the logged user has not blocked', async () => {
loggedUser = '1';
const userRepo = con.getRepository(User);
const userPostRepo = con.getRepository(UserPost);

await userRepo.save([
await con.getRepository(User).save([
{
id: '2',
name: 'Lee',
Expand All @@ -1340,7 +1338,7 @@ describe('query postUpvotes', () => {
},
]);

await userPostRepo.save([
await con.getRepository(UserPost).save([
{
userId: '2',
postId: 'p1',
Expand Down Expand Up @@ -3501,7 +3499,7 @@ describe('mutation createFreeformPost', () => {
expect(res.errors).toBeFalsy();
expect(res.data.createFreeformPost.contentHtml).toEqual(
'<pre><code>```<span class="hljs-tag">&lt;<span class="hljs-name">style</span>&gt;</span><span class="language-css"><span class="hljs-selector-tag">body</span>{<span class="hljs-attribute">background-color</span>: blue<span class="hljs-meta">!important</span>}<span class="hljs-selector-tag">a</span>,<span class="hljs-selector-tag">h1</span>,<span class="hljs-selector-tag">h2</span>{<span class="hljs-attribute">color</span>: red<span class="hljs-meta">!important</span>}</span><span class="hljs-tag">&lt;/<span class="hljs-name">style</span>&gt;</span>\n' +
'</code></pre>\n',
'</code></pre>\n',
);
});

Expand Down

0 comments on commit 9c993c4

Please sign in to comment.