Skip to content

Commit

Permalink
fix(tests): remove unused imports and only
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Apr 25, 2024
1 parent d1e2171 commit 82f59cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ describe('api form', () => {
cy.get('@apiForm').find('input[type="checkbox"]').check()
cy.get('@apiForm').find('gn-ui-text-input').first().should('have.value', '')
})
it.only('should reset all 3 inputs and link on click', () => {
it('should reset all 3 inputs and link on click', () => {
cy.get('@apiForm').find('gn-ui-text-input').first().as('firstInput')
cy.get('@firstInput').clear()
cy.get('@firstInput').type('54')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TestBed, ComponentFixture } from '@angular/core/testing'
import { RecordApiFormComponent } from './record-api-form.component'
import { DatasetServiceDistribution } from '@geonetwork-ui/common/domain/model/record'
import { firstValueFrom, of } from 'rxjs'
import { firstValueFrom } from 'rxjs'
import { UiInputsModule } from '@geonetwork-ui/ui/inputs'
import { TranslateModule } from '@ngx-translate/core'

Expand All @@ -20,7 +20,7 @@ jest.mock('@camptocamp/ogc-client', () => ({
getCollectionInfo(collectionId) {
return Promise.resolve({
id: collectionId,
formats: [
itemFormats: [
'application/geo+json',
'application/json',
'text/csv',
Expand Down

0 comments on commit 82f59cf

Please sign in to comment.