From a1c724df1c6b579d1e10950b9c6e3fc42bdb4678 Mon Sep 17 00:00:00 2001 From: Robert Buj Date: Sun, 26 Jan 2025 18:44:49 +0100 Subject: [PATCH] Remove test files (*.spec.ts) find . -name *.spec.ts -exec rm {} \; --- backend/src/app.controller.spec.ts | 22 ------------- backend/src/auth/auth.controller.spec.ts | 18 ---------- backend/src/auth/auth.service.spec.ts | 18 ---------- backend/src/auth/jwt.strategy.spec.ts | 7 ---- backend/src/auth/login.dto.spec.ts | 7 ---- .../exist-category-css-color.pipe.spec.ts | 7 ---- .../Pipes/exist-category-title.pipe.spec.ts | 7 ---- .../Pipes/valid-category-id.pipe.spec.ts | 7 ---- .../categories/categories.controller.spec.ts | 18 ---------- .../categories/categories.repository.spec.ts | 7 ---- .../src/categories/categories.service.spec.ts | 7 ---- backend/src/categories/category.dto.spec.ts | 7 ---- .../src/categories/category.entity.spec.ts | 7 ---- .../src/categories/category.mapper.spec.ts | 7 ---- .../filters/type-orm-exception.filter.spec.ts | 7 ---- .../posts/Pipes/valid-post-id.pipe.spec.ts | 7 ---- backend/src/posts/post.dto.spec.ts | 7 ---- backend/src/posts/post.entity.spec.ts | 7 ---- backend/src/posts/post.mapper.spec.ts | 7 ---- backend/src/posts/posts.controller.spec.ts | 18 ---------- backend/src/posts/posts.repository.spec.ts | 7 ---- backend/src/posts/posts.service.spec.ts | 7 ---- .../users/Pipes/exist-user-alias.pipe.spec.ts | 7 ---- .../users/Pipes/exist-user-email.pipe.spec.ts | 7 ---- .../users/Pipes/valid-user-id.pipe.spec.ts | 7 ---- backend/src/users/user.dto.spec.ts | 7 ---- backend/src/users/user.entity.spec.ts | 7 ---- backend/src/users/user.mapper.spec.ts | 7 ---- backend/src/users/users.controller.spec.ts | 18 ---------- backend/src/users/users.repository.spec.ts | 7 ---- backend/src/users/users.service.spec.ts | 18 ---------- .../categories-list.component.spec.ts | 24 -------------- .../category-form.component.spec.ts | 24 -------------- .../footer/footer.component.spec.ts | 24 -------------- .../header/header.component.spec.ts | 24 -------------- .../Components/home/home.component.spec.ts | 24 -------------- .../Components/login/login.component.spec.ts | 24 -------------- .../post-form/post-form.component.spec.ts | 24 -------------- .../posts-list/posts-list.component.spec.ts | 24 -------------- .../profile/profile.component.spec.ts | 24 -------------- .../register/register.component.spec.ts | 24 -------------- frontend/src/app/Guards/auth.guard.spec.ts | 16 --------- .../src/app/Pipes/format-date.pipe.spec.ts | 8 ----- .../Services/auth-interceptor.service.spec.ts | 16 --------- .../src/app/Services/auth.service.spec.ts | 16 --------- .../src/app/Services/category.service.spec.ts | 16 --------- .../app/Services/header-menus.service.spec.ts | 16 --------- .../Services/local-storage.service.spec.ts | 16 --------- .../src/app/Services/post.service.spec.ts | 16 --------- .../src/app/Services/shared.service.spec.ts | 16 --------- .../src/app/Services/user.service.spec.ts | 16 --------- frontend/src/app/app.component.spec.ts | 33 ------------------- 52 files changed, 723 deletions(-) delete mode 100644 backend/src/app.controller.spec.ts delete mode 100644 backend/src/auth/auth.controller.spec.ts delete mode 100644 backend/src/auth/auth.service.spec.ts delete mode 100644 backend/src/auth/jwt.strategy.spec.ts delete mode 100644 backend/src/auth/login.dto.spec.ts delete mode 100644 backend/src/categories/Pipes/exist-category-css-color.pipe.spec.ts delete mode 100644 backend/src/categories/Pipes/exist-category-title.pipe.spec.ts delete mode 100644 backend/src/categories/Pipes/valid-category-id.pipe.spec.ts delete mode 100644 backend/src/categories/categories.controller.spec.ts delete mode 100644 backend/src/categories/categories.repository.spec.ts delete mode 100644 backend/src/categories/categories.service.spec.ts delete mode 100644 backend/src/categories/category.dto.spec.ts delete mode 100644 backend/src/categories/category.entity.spec.ts delete mode 100644 backend/src/categories/category.mapper.spec.ts delete mode 100644 backend/src/filters/type-orm-exception.filter.spec.ts delete mode 100644 backend/src/posts/Pipes/valid-post-id.pipe.spec.ts delete mode 100644 backend/src/posts/post.dto.spec.ts delete mode 100644 backend/src/posts/post.entity.spec.ts delete mode 100644 backend/src/posts/post.mapper.spec.ts delete mode 100644 backend/src/posts/posts.controller.spec.ts delete mode 100644 backend/src/posts/posts.repository.spec.ts delete mode 100644 backend/src/posts/posts.service.spec.ts delete mode 100644 backend/src/users/Pipes/exist-user-alias.pipe.spec.ts delete mode 100644 backend/src/users/Pipes/exist-user-email.pipe.spec.ts delete mode 100644 backend/src/users/Pipes/valid-user-id.pipe.spec.ts delete mode 100644 backend/src/users/user.dto.spec.ts delete mode 100644 backend/src/users/user.entity.spec.ts delete mode 100644 backend/src/users/user.mapper.spec.ts delete mode 100644 backend/src/users/users.controller.spec.ts delete mode 100644 backend/src/users/users.repository.spec.ts delete mode 100644 backend/src/users/users.service.spec.ts delete mode 100644 frontend/src/app/Components/categories/categories-list/categories-list.component.spec.ts delete mode 100644 frontend/src/app/Components/categories/category-form/category-form.component.spec.ts delete mode 100644 frontend/src/app/Components/footer/footer.component.spec.ts delete mode 100644 frontend/src/app/Components/header/header.component.spec.ts delete mode 100644 frontend/src/app/Components/home/home.component.spec.ts delete mode 100644 frontend/src/app/Components/login/login.component.spec.ts delete mode 100644 frontend/src/app/Components/posts/post-form/post-form.component.spec.ts delete mode 100644 frontend/src/app/Components/posts/posts-list/posts-list.component.spec.ts delete mode 100644 frontend/src/app/Components/profile/profile.component.spec.ts delete mode 100644 frontend/src/app/Components/register/register.component.spec.ts delete mode 100644 frontend/src/app/Guards/auth.guard.spec.ts delete mode 100644 frontend/src/app/Pipes/format-date.pipe.spec.ts delete mode 100644 frontend/src/app/Services/auth-interceptor.service.spec.ts delete mode 100644 frontend/src/app/Services/auth.service.spec.ts delete mode 100644 frontend/src/app/Services/category.service.spec.ts delete mode 100644 frontend/src/app/Services/header-menus.service.spec.ts delete mode 100644 frontend/src/app/Services/local-storage.service.spec.ts delete mode 100644 frontend/src/app/Services/post.service.spec.ts delete mode 100644 frontend/src/app/Services/shared.service.spec.ts delete mode 100644 frontend/src/app/Services/user.service.spec.ts delete mode 100644 frontend/src/app/app.component.spec.ts diff --git a/backend/src/app.controller.spec.ts b/backend/src/app.controller.spec.ts deleted file mode 100644 index d22f389..0000000 --- a/backend/src/app.controller.spec.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Test, TestingModule } from '@nestjs/testing'; -import { AppController } from './app.controller'; -import { AppService } from './app.service'; - -describe('AppController', () => { - let appController: AppController; - - beforeEach(async () => { - const app: TestingModule = await Test.createTestingModule({ - controllers: [AppController], - providers: [AppService], - }).compile(); - - appController = app.get(AppController); - }); - - describe('root', () => { - it('should return "Hello World!"', () => { - expect(appController.getHello()).toBe('Hello World!'); - }); - }); -}); diff --git a/backend/src/auth/auth.controller.spec.ts b/backend/src/auth/auth.controller.spec.ts deleted file mode 100644 index 27a31e6..0000000 --- a/backend/src/auth/auth.controller.spec.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Test, TestingModule } from '@nestjs/testing'; -import { AuthController } from './auth.controller'; - -describe('AuthController', () => { - let controller: AuthController; - - beforeEach(async () => { - const module: TestingModule = await Test.createTestingModule({ - controllers: [AuthController], - }).compile(); - - controller = module.get(AuthController); - }); - - it('should be defined', () => { - expect(controller).toBeDefined(); - }); -}); diff --git a/backend/src/auth/auth.service.spec.ts b/backend/src/auth/auth.service.spec.ts deleted file mode 100644 index 800ab66..0000000 --- a/backend/src/auth/auth.service.spec.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Test, TestingModule } from '@nestjs/testing'; -import { AuthService } from './auth.service'; - -describe('AuthService', () => { - let service: AuthService; - - beforeEach(async () => { - const module: TestingModule = await Test.createTestingModule({ - providers: [AuthService], - }).compile(); - - service = module.get(AuthService); - }); - - it('should be defined', () => { - expect(service).toBeDefined(); - }); -}); diff --git a/backend/src/auth/jwt.strategy.spec.ts b/backend/src/auth/jwt.strategy.spec.ts deleted file mode 100644 index 67a7365..0000000 --- a/backend/src/auth/jwt.strategy.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { JwtStrategy } from './jwt.strategy'; - -describe('JwtStrategy', () => { - it('should be defined', () => { - expect(new JwtStrategy()).toBeDefined(); - }); -}); diff --git a/backend/src/auth/login.dto.spec.ts b/backend/src/auth/login.dto.spec.ts deleted file mode 100644 index 1b7e566..0000000 --- a/backend/src/auth/login.dto.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { LoginDto } from './login.dto'; - -describe('LoginDto', () => { - it('should be defined', () => { - expect(new LoginDto()).toBeDefined(); - }); -}); diff --git a/backend/src/categories/Pipes/exist-category-css-color.pipe.spec.ts b/backend/src/categories/Pipes/exist-category-css-color.pipe.spec.ts deleted file mode 100644 index 3ec9a7d..0000000 --- a/backend/src/categories/Pipes/exist-category-css-color.pipe.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ExistCategoryCssColorPipe } from './exist-category-css-color.pipe'; - -describe('ExistCategoryCssColorPipe', () => { - it('should be defined', () => { - expect(new ExistCategoryCssColorPipe()).toBeDefined(); - }); -}); diff --git a/backend/src/categories/Pipes/exist-category-title.pipe.spec.ts b/backend/src/categories/Pipes/exist-category-title.pipe.spec.ts deleted file mode 100644 index e14ca99..0000000 --- a/backend/src/categories/Pipes/exist-category-title.pipe.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ExistCategoryTitlePipe } from './exist-category-title.pipe'; - -describe('ExistCategoryTitlePipe', () => { - it('should be defined', () => { - expect(new ExistCategoryTitlePipe()).toBeDefined(); - }); -}); diff --git a/backend/src/categories/Pipes/valid-category-id.pipe.spec.ts b/backend/src/categories/Pipes/valid-category-id.pipe.spec.ts deleted file mode 100644 index 2fab510..0000000 --- a/backend/src/categories/Pipes/valid-category-id.pipe.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ValidCategoryIdPipe } from './valid-category-id.pipe'; - -describe('ValidCategoryIdPipe', () => { - it('should be defined', () => { - expect(new ValidCategoryIdPipe()).toBeDefined(); - }); -}); diff --git a/backend/src/categories/categories.controller.spec.ts b/backend/src/categories/categories.controller.spec.ts deleted file mode 100644 index 6b4023f..0000000 --- a/backend/src/categories/categories.controller.spec.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Test, TestingModule } from '@nestjs/testing'; -import { CategoriesController } from './categories.controller'; - -describe('CategoriesController', () => { - let controller: CategoriesController; - - beforeEach(async () => { - const module: TestingModule = await Test.createTestingModule({ - controllers: [CategoriesController], - }).compile(); - - controller = module.get(CategoriesController); - }); - - it('should be defined', () => { - expect(controller).toBeDefined(); - }); -}); diff --git a/backend/src/categories/categories.repository.spec.ts b/backend/src/categories/categories.repository.spec.ts deleted file mode 100644 index 358be67..0000000 --- a/backend/src/categories/categories.repository.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { CategoriesRepository } from './categories.repository'; - -describe('CategoriesRepository', () => { - it('should be defined', () => { - expect(new CategoriesRepository()).toBeDefined(); - }); -}); diff --git a/backend/src/categories/categories.service.spec.ts b/backend/src/categories/categories.service.spec.ts deleted file mode 100644 index 59328df..0000000 --- a/backend/src/categories/categories.service.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { CategoriesService } from './categories.service'; - -describe('CategoriesService', () => { - it('should be defined', () => { - expect(new CategoriesService()).toBeDefined(); - }); -}); diff --git a/backend/src/categories/category.dto.spec.ts b/backend/src/categories/category.dto.spec.ts deleted file mode 100644 index 2c1aa68..0000000 --- a/backend/src/categories/category.dto.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { CategoryDto } from './category.dto'; - -describe('CategoryDto', () => { - it('should be defined', () => { - expect(new CategoryDto()).toBeDefined(); - }); -}); diff --git a/backend/src/categories/category.entity.spec.ts b/backend/src/categories/category.entity.spec.ts deleted file mode 100644 index 3f6f7b2..0000000 --- a/backend/src/categories/category.entity.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { CategoryEntity } from './category.entity'; - -describe('CategoryEntity', () => { - it('should be defined', () => { - expect(new CategoryEntity()).toBeDefined(); - }); -}); diff --git a/backend/src/categories/category.mapper.spec.ts b/backend/src/categories/category.mapper.spec.ts deleted file mode 100644 index d704dc4..0000000 --- a/backend/src/categories/category.mapper.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { CategoryMapper } from './category.mapper'; - -describe('CategoryMapper', () => { - it('should be defined', () => { - expect(new CategoryMapper()).toBeDefined(); - }); -}); diff --git a/backend/src/filters/type-orm-exception.filter.spec.ts b/backend/src/filters/type-orm-exception.filter.spec.ts deleted file mode 100644 index a7aecb4..0000000 --- a/backend/src/filters/type-orm-exception.filter.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { TypeOrmExceptionFilter } from './type-orm-exception.filter'; - -describe('TypeOrmExceptionFilter', () => { - it('should be defined', () => { - expect(new TypeOrmExceptionFilter()).toBeDefined(); - }); -}); diff --git a/backend/src/posts/Pipes/valid-post-id.pipe.spec.ts b/backend/src/posts/Pipes/valid-post-id.pipe.spec.ts deleted file mode 100644 index fd431d1..0000000 --- a/backend/src/posts/Pipes/valid-post-id.pipe.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ValidPostIdPipe } from './valid-post-id.pipe'; - -describe('ValidPostIdPipe', () => { - it('should be defined', () => { - expect(new ValidPostIdPipe()).toBeDefined(); - }); -}); diff --git a/backend/src/posts/post.dto.spec.ts b/backend/src/posts/post.dto.spec.ts deleted file mode 100644 index 34322a9..0000000 --- a/backend/src/posts/post.dto.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { PostDto } from './post.dto'; - -describe('PostDto', () => { - it('should be defined', () => { - expect(new PostDto()).toBeDefined(); - }); -}); diff --git a/backend/src/posts/post.entity.spec.ts b/backend/src/posts/post.entity.spec.ts deleted file mode 100644 index 2dfa201..0000000 --- a/backend/src/posts/post.entity.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { PostEntity } from './post.entity'; - -describe('PostEntity', () => { - it('should be defined', () => { - expect(new PostEntity()).toBeDefined(); - }); -}); diff --git a/backend/src/posts/post.mapper.spec.ts b/backend/src/posts/post.mapper.spec.ts deleted file mode 100644 index 3f6abe6..0000000 --- a/backend/src/posts/post.mapper.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { PostMapper } from './post.mapper'; - -describe('PostMapper', () => { - it('should be defined', () => { - expect(new PostMapper()).toBeDefined(); - }); -}); diff --git a/backend/src/posts/posts.controller.spec.ts b/backend/src/posts/posts.controller.spec.ts deleted file mode 100644 index 7784335..0000000 --- a/backend/src/posts/posts.controller.spec.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Test, TestingModule } from '@nestjs/testing'; -import { PostsController } from './posts.controller'; - -describe('PostsController', () => { - let controller: PostsController; - - beforeEach(async () => { - const module: TestingModule = await Test.createTestingModule({ - controllers: [PostsController], - }).compile(); - - controller = module.get(PostsController); - }); - - it('should be defined', () => { - expect(controller).toBeDefined(); - }); -}); diff --git a/backend/src/posts/posts.repository.spec.ts b/backend/src/posts/posts.repository.spec.ts deleted file mode 100644 index 7c3226e..0000000 --- a/backend/src/posts/posts.repository.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { PostsRepository } from './posts.repository'; - -describe('PostsRepository', () => { - it('should be defined', () => { - expect(new PostsRepository()).toBeDefined(); - }); -}); diff --git a/backend/src/posts/posts.service.spec.ts b/backend/src/posts/posts.service.spec.ts deleted file mode 100644 index c116d5f..0000000 --- a/backend/src/posts/posts.service.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { PostsService } from './posts.service'; - -describe('PostsService', () => { - it('should be defined', () => { - expect(new PostsService()).toBeDefined(); - }); -}); diff --git a/backend/src/users/Pipes/exist-user-alias.pipe.spec.ts b/backend/src/users/Pipes/exist-user-alias.pipe.spec.ts deleted file mode 100644 index 1a9add8..0000000 --- a/backend/src/users/Pipes/exist-user-alias.pipe.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ExistUserAliasPipe } from './exist-user-alias.pipe'; - -describe('ExistUserAliasPipe', () => { - it('should be defined', () => { - expect(new ExistUserAliasPipe()).toBeDefined(); - }); -}); diff --git a/backend/src/users/Pipes/exist-user-email.pipe.spec.ts b/backend/src/users/Pipes/exist-user-email.pipe.spec.ts deleted file mode 100644 index a8f7550..0000000 --- a/backend/src/users/Pipes/exist-user-email.pipe.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ExistUserEmailPipe } from './exist-user-email.pipe'; - -describe('ExistUserEmailPipe', () => { - it('should be defined', () => { - expect(new ExistUserEmailPipe()).toBeDefined(); - }); -}); diff --git a/backend/src/users/Pipes/valid-user-id.pipe.spec.ts b/backend/src/users/Pipes/valid-user-id.pipe.spec.ts deleted file mode 100644 index 53481d8..0000000 --- a/backend/src/users/Pipes/valid-user-id.pipe.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ValidUserIdPipe } from './valid-user-id.pipe'; - -describe('ValidUserIdPipe', () => { - it('should be defined', () => { - expect(new ValidUserIdPipe()).toBeDefined(); - }); -}); diff --git a/backend/src/users/user.dto.spec.ts b/backend/src/users/user.dto.spec.ts deleted file mode 100644 index 02578af..0000000 --- a/backend/src/users/user.dto.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { UserDto } from './user.dto'; - -describe('UserDto', () => { - it('should be defined', () => { - expect(new UserDto()).toBeDefined(); - }); -}); diff --git a/backend/src/users/user.entity.spec.ts b/backend/src/users/user.entity.spec.ts deleted file mode 100644 index 36301cd..0000000 --- a/backend/src/users/user.entity.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { UserEntity } from './user.entity'; - -describe('UserEntity', () => { - it('should be defined', () => { - expect(new UserEntity()).toBeDefined(); - }); -}); diff --git a/backend/src/users/user.mapper.spec.ts b/backend/src/users/user.mapper.spec.ts deleted file mode 100644 index 2552f6a..0000000 --- a/backend/src/users/user.mapper.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { UserMapper } from './user.mapper'; - -describe('UserMapper', () => { - it('should be defined', () => { - expect(new UserMapper()).toBeDefined(); - }); -}); diff --git a/backend/src/users/users.controller.spec.ts b/backend/src/users/users.controller.spec.ts deleted file mode 100644 index 3e27c39..0000000 --- a/backend/src/users/users.controller.spec.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Test, TestingModule } from '@nestjs/testing'; -import { UsersController } from './users.controller'; - -describe('UsersController', () => { - let controller: UsersController; - - beforeEach(async () => { - const module: TestingModule = await Test.createTestingModule({ - controllers: [UsersController], - }).compile(); - - controller = module.get(UsersController); - }); - - it('should be defined', () => { - expect(controller).toBeDefined(); - }); -}); diff --git a/backend/src/users/users.repository.spec.ts b/backend/src/users/users.repository.spec.ts deleted file mode 100644 index 94d893c..0000000 --- a/backend/src/users/users.repository.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { UsersRepository } from './users.repository'; - -describe('UsersRepository', () => { - it('should be defined', () => { - expect(new UsersRepository()).toBeDefined(); - }); -}); diff --git a/backend/src/users/users.service.spec.ts b/backend/src/users/users.service.spec.ts deleted file mode 100644 index 62815ba..0000000 --- a/backend/src/users/users.service.spec.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Test, TestingModule } from '@nestjs/testing'; -import { UsersService } from './users.service'; - -describe('UsersService', () => { - let service: UsersService; - - beforeEach(async () => { - const module: TestingModule = await Test.createTestingModule({ - providers: [UsersService], - }).compile(); - - service = module.get(UsersService); - }); - - it('should be defined', () => { - expect(service).toBeDefined(); - }); -}); diff --git a/frontend/src/app/Components/categories/categories-list/categories-list.component.spec.ts b/frontend/src/app/Components/categories/categories-list/categories-list.component.spec.ts deleted file mode 100644 index d848a52..0000000 --- a/frontend/src/app/Components/categories/categories-list/categories-list.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { CategoriesListComponent } from './categories-list.component'; - -describe('CategoriesListComponent', () => { - let component: CategoriesListComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [CategoriesListComponent] - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(CategoriesListComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Components/categories/category-form/category-form.component.spec.ts b/frontend/src/app/Components/categories/category-form/category-form.component.spec.ts deleted file mode 100644 index eeccca8..0000000 --- a/frontend/src/app/Components/categories/category-form/category-form.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { CategoryFormComponent } from './category-form.component'; - -describe('CategoryFormComponent', () => { - let component: CategoryFormComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [CategoryFormComponent] - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(CategoryFormComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Components/footer/footer.component.spec.ts b/frontend/src/app/Components/footer/footer.component.spec.ts deleted file mode 100644 index 8d11f89..0000000 --- a/frontend/src/app/Components/footer/footer.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { FooterComponent } from './footer.component'; - -describe('FooterComponent', () => { - let component: FooterComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [FooterComponent] - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(FooterComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Components/header/header.component.spec.ts b/frontend/src/app/Components/header/header.component.spec.ts deleted file mode 100644 index 5b10db6..0000000 --- a/frontend/src/app/Components/header/header.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { HeaderComponent } from './header.component'; - -describe('HeaderComponent', () => { - let component: HeaderComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [HeaderComponent] - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(HeaderComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Components/home/home.component.spec.ts b/frontend/src/app/Components/home/home.component.spec.ts deleted file mode 100644 index c0f56cb..0000000 --- a/frontend/src/app/Components/home/home.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { HomeComponent } from './home.component'; - -describe('HomeComponent', () => { - let component: HomeComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [HomeComponent] - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(HomeComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Components/login/login.component.spec.ts b/frontend/src/app/Components/login/login.component.spec.ts deleted file mode 100644 index 890bd0d..0000000 --- a/frontend/src/app/Components/login/login.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { LoginComponent } from './login.component'; - -describe('LoginComponent', () => { - let component: LoginComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [LoginComponent] - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(LoginComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Components/posts/post-form/post-form.component.spec.ts b/frontend/src/app/Components/posts/post-form/post-form.component.spec.ts deleted file mode 100644 index ef11743..0000000 --- a/frontend/src/app/Components/posts/post-form/post-form.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { PostFormComponent } from './post-form.component'; - -describe('PostFormComponent', () => { - let component: PostFormComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [PostFormComponent] - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(PostFormComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Components/posts/posts-list/posts-list.component.spec.ts b/frontend/src/app/Components/posts/posts-list/posts-list.component.spec.ts deleted file mode 100644 index 215ebd4..0000000 --- a/frontend/src/app/Components/posts/posts-list/posts-list.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { PostsListComponent } from './posts-list.component'; - -describe('PostsListComponent', () => { - let component: PostsListComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [PostsListComponent] - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(PostsListComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Components/profile/profile.component.spec.ts b/frontend/src/app/Components/profile/profile.component.spec.ts deleted file mode 100644 index d91e217..0000000 --- a/frontend/src/app/Components/profile/profile.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { ProfileComponent } from './profile.component'; - -describe('ProfileComponent', () => { - let component: ProfileComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [ProfileComponent] - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(ProfileComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Components/register/register.component.spec.ts b/frontend/src/app/Components/register/register.component.spec.ts deleted file mode 100644 index 6196366..0000000 --- a/frontend/src/app/Components/register/register.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { RegisterComponent } from './register.component'; - -describe('RegisterComponent', () => { - let component: RegisterComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [RegisterComponent] - }).compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(RegisterComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Guards/auth.guard.spec.ts b/frontend/src/app/Guards/auth.guard.spec.ts deleted file mode 100644 index 68889d2..0000000 --- a/frontend/src/app/Guards/auth.guard.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { TestBed } from '@angular/core/testing'; - -import { AuthGuard } from './auth.guard'; - -describe('AuthGuard', () => { - let guard: AuthGuard; - - beforeEach(() => { - TestBed.configureTestingModule({}); - guard = TestBed.inject(AuthGuard); - }); - - it('should be created', () => { - expect(guard).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Pipes/format-date.pipe.spec.ts b/frontend/src/app/Pipes/format-date.pipe.spec.ts deleted file mode 100644 index 5ec7ede..0000000 --- a/frontend/src/app/Pipes/format-date.pipe.spec.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { FormatDatePipe } from './format-date.pipe'; - -describe('FormatDatePipe', () => { - it('create an instance', () => { - const pipe = new FormatDatePipe(); - expect(pipe).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Services/auth-interceptor.service.spec.ts b/frontend/src/app/Services/auth-interceptor.service.spec.ts deleted file mode 100644 index 03e16c3..0000000 --- a/frontend/src/app/Services/auth-interceptor.service.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { TestBed } from '@angular/core/testing'; - -import { AuthInterceptorService } from './auth-interceptor.service'; - -describe('AuthInterceptorService', () => { - let service: AuthInterceptorService; - - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(AuthInterceptorService); - }); - - it('should be created', () => { - expect(service).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Services/auth.service.spec.ts b/frontend/src/app/Services/auth.service.spec.ts deleted file mode 100644 index f1251ca..0000000 --- a/frontend/src/app/Services/auth.service.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { TestBed } from '@angular/core/testing'; - -import { AuthService } from './auth.service'; - -describe('AuthService', () => { - let service: AuthService; - - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(AuthService); - }); - - it('should be created', () => { - expect(service).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Services/category.service.spec.ts b/frontend/src/app/Services/category.service.spec.ts deleted file mode 100644 index 5658507..0000000 --- a/frontend/src/app/Services/category.service.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { TestBed } from '@angular/core/testing'; - -import { CategoryService } from './category.service'; - -describe('CategoryService', () => { - let service: CategoryService; - - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(CategoryService); - }); - - it('should be created', () => { - expect(service).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Services/header-menus.service.spec.ts b/frontend/src/app/Services/header-menus.service.spec.ts deleted file mode 100644 index e4d05ba..0000000 --- a/frontend/src/app/Services/header-menus.service.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { TestBed } from '@angular/core/testing'; - -import { HeaderMenusService } from './header-menus.service'; - -describe('HeaderMenusService', () => { - let service: HeaderMenusService; - - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(HeaderMenusService); - }); - - it('should be created', () => { - expect(service).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Services/local-storage.service.spec.ts b/frontend/src/app/Services/local-storage.service.spec.ts deleted file mode 100644 index ba1dbd4..0000000 --- a/frontend/src/app/Services/local-storage.service.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { TestBed } from '@angular/core/testing'; - -import { LocalStorageService } from './local-storage.service'; - -describe('LocalStorageService', () => { - let service: LocalStorageService; - - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(LocalStorageService); - }); - - it('should be created', () => { - expect(service).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Services/post.service.spec.ts b/frontend/src/app/Services/post.service.spec.ts deleted file mode 100644 index 913642b..0000000 --- a/frontend/src/app/Services/post.service.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { TestBed } from '@angular/core/testing'; - -import { PostService } from './post.service'; - -describe('PostService', () => { - let service: PostService; - - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(PostService); - }); - - it('should be created', () => { - expect(service).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Services/shared.service.spec.ts b/frontend/src/app/Services/shared.service.spec.ts deleted file mode 100644 index 3da5345..0000000 --- a/frontend/src/app/Services/shared.service.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { TestBed } from '@angular/core/testing'; - -import { SharedService } from './shared.service'; - -describe('SharedService', () => { - let service: SharedService; - - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(SharedService); - }); - - it('should be created', () => { - expect(service).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/Services/user.service.spec.ts b/frontend/src/app/Services/user.service.spec.ts deleted file mode 100644 index 3f804c9..0000000 --- a/frontend/src/app/Services/user.service.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { TestBed } from '@angular/core/testing'; - -import { UserService } from './user.service'; - -describe('UserService', () => { - let service: UserService; - - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(UserService); - }); - - it('should be created', () => { - expect(service).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/app.component.spec.ts b/frontend/src/app/app.component.spec.ts deleted file mode 100644 index 14a4b27..0000000 --- a/frontend/src/app/app.component.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { TestBed } from '@angular/core/testing'; -import { RouterTestingModule } from '@angular/router/testing'; -import { AppComponent } from './app.component'; - -describe('AppComponent', () => { - beforeEach(async () => { - await TestBed.configureTestingModule({ - imports: [RouterTestingModule], - declarations: [AppComponent] - }).compileComponents(); - }); - - it('should create the app', () => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.componentInstance; - expect(app).toBeTruthy(); - }); - - it(`should have as title 'blog-uoc-project-front'`, () => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.componentInstance; - expect(app.title).toEqual('blog-uoc-project-front'); - }); - - it('should render title', () => { - const fixture = TestBed.createComponent(AppComponent); - fixture.detectChanges(); - const compiled = fixture.nativeElement as HTMLElement; - expect(compiled.querySelector('.content span')?.textContent).toContain( - 'blog-uoc-project-front app is running!' - ); - }); -});