Skip to content

Commit

Permalink
fix: testes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlineLermen committed Jul 10, 2023
1 parent 458436c commit 2e2eb95
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/useCases/getEquipment/getEquipmentUseCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ export interface GetEquipmentInput {

acquisition?: string

type?: string
type?: number

situacao?: string

model?: string

unit?: string

brand?: string
brand?: number

screenSize?: string

Expand Down
2 changes: 1 addition & 1 deletion tests/find-order-service-usecase.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('FindOrderService', () => {
expectedData
)

const query = { type: 'type1', unit: 'unit1' }
const query = { type: 2, unit: 'unit1' }
const result = await findOrderServiceUseCase.execute(query)

expect(
Expand Down
4 changes: 2 additions & 2 deletions tests/find-orders-service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ const orderService: OrderService = {
}

const request: FindOrderServiceUseCaseData = {
type: '',
type: 0,
unit: '',
date: '',
brand: '',
brand: 0,
search: '',
model: '',
status: ''
Expand Down
4 changes: 2 additions & 2 deletions tests/getEquipmentUseCase.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('Should test get equipment', () => {

it('should find equipmentswith genetic attributes', async () => {
const queryRequest = {
type: 'CPU',
type: datatype.number(),
ram_size: datatype.number().toString(),
processor: 'i7'
}
Expand All @@ -86,7 +86,7 @@ describe('Should test get equipment', () => {

it('should not find equipment with generic attributes', async () => {
const queryRequest = {
type: datatype.string(),
type: datatype.number(),
ram_size: datatype.number().toString(),
processor: datatype.string()
}
Expand Down

0 comments on commit 2e2eb95

Please sign in to comment.