Skip to content

Commit

Permalink
EDSC-3797: updated the wording and moved around tests to match best p…
Browse files Browse the repository at this point in the history
…ractices.
  • Loading branch information
bnp26 committed Nov 15, 2023
1 parent 344b7b3 commit 457a5cb
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,8 @@ describe('constructOrderPayload', () => {
})
})

describe('when only concatenation is supported', () => {
test('constructs a payload containing supportsConcatenation = true and enableConcatenateDownload = true', async () => {
describe('when supportsConcatenation = true and enableConcatenateDownload = true', () => {
test('constructs a payload containing concatenate = true', async () => {
nock(/cmr/)
.matchHeader('Authorization', 'Bearer access-token')
.get('/search/granules.json?point%5B%5D=-77%2C%2034')
Expand Down Expand Up @@ -730,8 +730,10 @@ describe('constructOrderPayload', () => {
'true'
])
})
})

test('constructs a payload containing supportsConcatenation = true and enableConcatenateDownload = false', async () => {
describe('when supportsConcatenation = false or enableConcatenateDownload = false', () => {
test('constructed payload does not containe concatenate', async () => {
nock(/cmr/)
.matchHeader('Authorization', 'Bearer access-token')
.get('/search/granules.json?point%5B%5D=-77%2C%2034')
Expand Down Expand Up @@ -766,10 +768,8 @@ describe('constructOrderPayload', () => {
'true'
])
})
})

describe('when concatenation is not supported', () => {
test('constructs a payload containing supportsConcatenation = false', async () => {
test('constructed payload does not containe concatenate', async () => {
nock(/cmr/)
.matchHeader('Authorization', 'Bearer access-token')
.get('/search/granules.json?point%5B%5D=-77%2C%2034')
Expand Down

0 comments on commit 457a5cb

Please sign in to comment.