-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - added SP/GP unit tests - fixed a test suite - app version = 3.3.2 * - used createComponent to simplify mount command - fixed incorrect unit tests * - parameterized unit tests
- Loading branch information
1 parent
9342e45
commit b6fb68c
Showing
6 changed files
with
600 additions
and
153 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,19 +59,6 @@ describe('Firm Correction component', () => { | |
|
||
const get = sinon.stub(axios, 'get') | ||
|
||
// GET auth info | ||
get.withArgs('https://auth.api.url/entities/FM1234567') | ||
.returns(Promise.resolve({ | ||
data: { | ||
contacts: [ | ||
{ | ||
email: '[email protected]', | ||
phone: '123-456-7890' | ||
} | ||
] | ||
} | ||
})) | ||
|
||
// GET payment fee for immediate correction | ||
get.withArgs('https://pay.api.url/fees/SP/CORRECTION') | ||
.returns(Promise.resolve({ | ||
|
@@ -114,9 +101,11 @@ describe('Firm Correction component', () => { | |
get.withArgs('businesses/FM1234567/filings/123') | ||
.returns(Promise.resolve({ | ||
data: { | ||
business: {}, | ||
header: {}, | ||
incorporationApplication: {} | ||
filing: { | ||
business: {}, | ||
header: {}, | ||
registration: {} | ||
} | ||
} | ||
})) | ||
|
||
|
@@ -126,12 +115,31 @@ describe('Firm Correction component', () => { | |
data: { business: { legalType: 'SP' } } | ||
})) | ||
|
||
// GET auth info | ||
get.withArgs('https://auth.api.url/entities/FM1234567') | ||
.returns(Promise.resolve({ | ||
data: { | ||
contacts: [ | ||
{ | ||
email: '[email protected]', | ||
phone: '123-456-7890' | ||
} | ||
] | ||
} | ||
})) | ||
|
||
// GET addresses | ||
get.withArgs('businesses/FM1234567/addresses') | ||
.returns(Promise.resolve({ | ||
data: {} | ||
})) | ||
|
||
// GET parties | ||
get.withArgs('businesses/FM1234567/parties') | ||
.returns(Promise.resolve({ | ||
data: { parties: [] } | ||
})) | ||
|
||
// create a Local Vue and install router on it | ||
const localVue = createLocalVue() | ||
localVue.use(VueRouter) | ||
|
Oops, something went wrong.