Skip to content

Commit

Permalink
Merge pull request #622 from aziontech/update-package-181
Browse files Browse the repository at this point in the history
[NO-ISSUE] chore: update package version for deploy
  • Loading branch information
csfeijo authored Jan 25, 2024
2 parents ecb4e62 + 9ee74d2 commit b2293f4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "azion-platform-kit",
"version": "1.8.0",
"version": "1.8.1",
"private": true,
"type": "module",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/services/domains-services/list-domains-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const adapt = async (httpResponse) => {
content: 'Inactive',
severity: 'danger'
},
activeSort: domain.is_active,
activeSort: domain.is_active,
domainName: {
content: domain.domain_name
},
Expand Down
33 changes: 19 additions & 14 deletions src/tests/services/domains-services/list-domains-service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,16 @@ const makeSut = () => {

describe('DomainsServices', () => {
it('should call api with correct params', async () => {
const requestSpy = vi.spyOn(AxiosHttpClientAdapter, 'request').mockResolvedValueOnce({
statusCode: 200,
body: { results: [] }
}).mockResolvedValueOnce({
statusCode: 200,
body: { results: fixtures.edgeApplicationsMock }
})
const requestSpy = vi
.spyOn(AxiosHttpClientAdapter, 'request')
.mockResolvedValueOnce({
statusCode: 200,
body: { results: [] }
})
.mockResolvedValueOnce({
statusCode: 200,
body: { results: fixtures.edgeApplicationsMock }
})

const { sut } = makeSut()
const version = 'v3'
Expand All @@ -58,13 +61,15 @@ describe('DomainsServices', () => {
})

it('should parsed correctly all returned domains', async () => {
vi.spyOn(AxiosHttpClientAdapter, 'request').mockResolvedValueOnce({
statusCode: 200,
body: { results: [fixtures.domainMock, fixtures.disabledDomainMock] }
}).mockResolvedValueOnce({
statusCode: 200,
body: { results: fixtures.edgeApplicationsMock }
})
vi.spyOn(AxiosHttpClientAdapter, 'request')
.mockResolvedValueOnce({
statusCode: 200,
body: { results: [fixtures.domainMock, fixtures.disabledDomainMock] }
})
.mockResolvedValueOnce({
statusCode: 200,
body: { results: fixtures.edgeApplicationsMock }
})

const { sut } = makeSut()

Expand Down

0 comments on commit b2293f4

Please sign in to comment.