Skip to content

Commit

Permalink
Merge pull request #99 from boostcampwm2023/feat/server-prettier
Browse files Browse the repository at this point in the history
feat/server-prettier : 프리티어 80 적용
  • Loading branch information
sjn0910 authored Nov 28, 2023
2 parents 9cd1bc1 + 5fcac2a commit 2d3b46c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
12 changes: 10 additions & 2 deletions server/src/entities/problem.entity.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import { BaseEntity, Column, Entity, JoinTable, ManyToMany, OneToMany, PrimaryGeneratedColumn } from 'typeorm';
import {
BaseEntity,
Column,
Entity,
JoinTable,
ManyToMany,
OneToMany,
PrimaryGeneratedColumn,
} from 'typeorm';
import Room from './room.entity';
import Submission from './submission.entity';
import Tag from './tag.entity';
import Room from './room.entity';

@Entity()
export default class Problem extends BaseEntity {
Expand Down
9 changes: 8 additions & 1 deletion server/src/entities/submission.entity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { BaseEntity, Column, CreateDateColumn, Entity, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
import {
BaseEntity,
Column,
CreateDateColumn,
Entity,
ManyToOne,
PrimaryGeneratedColumn,
} from 'typeorm';
import Problem from './problem.entity';
import Room from './room.entity';
import User from './user.entity';
Expand Down
8 changes: 7 additions & 1 deletion server/src/entities/tag.entity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { BaseEntity, Column, Entity, ManyToMany, PrimaryGeneratedColumn } from 'typeorm';
import {
BaseEntity,
Column,
Entity,
ManyToMany,
PrimaryGeneratedColumn,
} from 'typeorm';
import Problem from './problem.entity';

@Entity()
Expand Down
7 changes: 5 additions & 2 deletions server/test/app.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import { Test, TestingModule } from '@nestjs/testing';
import * as request from 'supertest';
import { AppModule } from './../src/app.module';

Expand All @@ -16,6 +16,9 @@ describe('AppController (e2e)', () => {
});

it('/ (GET)', () => {
return request(app.getHttpServer()).get('/').expect(200).expect('Hello World!');
return request(app.getHttpServer())
.get('/')
.expect(200)
.expect('Hello World!');
});
});

0 comments on commit 2d3b46c

Please sign in to comment.