Skip to content

Commit

Permalink
feat(editor): Clean up unnessecary code, add test file
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas committed Sep 4, 2023
1 parent 6eaed99 commit 3570528
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 29 deletions.
6 changes: 0 additions & 6 deletions apps/metadata-editor/src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ export const appRoutes: Route[] = [
},
],
},
// {
// path: '/records(inner:all)',
// title: 'All records',
// component: AllRecordsComponent,
// outlet: 'inner',
// },
{ path: 'sign-in', component: SignInPageComponent },
{ path: 'create', component: CreatePageComponent },
{
Expand Down
23 changes: 0 additions & 23 deletions apps/metadata-editor/src/app/dashboard/dashboard-search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,6 @@ export class DashboardSearchService {
.setConfigRequestFields(includes)
.setPagination(0, 15)
.setSortBy(['desc', 'changeDate'])

// combineLatest([
// this.dashboardFacade.activeMenu$,
// authService.user$,
// ]).subscribe(([menu, user]) => {
// let filters
// switch (menu) {
// case 'my-records':
// filters = {
// owner: { [user.id]: true },
// }
// break
// case 'my-org':
// filters = {
// Org: { [user.organisation]: true },
// }
// break
// case 'catalog':
// default:
// break
// }
// this.facade.setFilters(filters)
// })
}

paginate(page: number) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { ComponentFixture, TestBed } from '@angular/core/testing'
import { AllRecordsComponent } from './all-records-list.component'

describe('AllRecordsComponent', () => {
let component: AllRecordsComponent
let fixture: ComponentFixture<AllRecordsComponent>

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [AllRecordsComponent],
})
fixture = TestBed.createComponent(AllRecordsComponent)
component = fixture.componentInstance
fixture.detectChanges()
})

it('should create', () => {
expect(component).toBeTruthy()
})
})

0 comments on commit 3570528

Please sign in to comment.