fix
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
488ef17559
commit
d4fc64484a
|
@ -5,10 +5,12 @@ describe('Supplier Component vnSupplierAccount', () => {
|
||||||
let $element;
|
let $element;
|
||||||
let controller;
|
let controller;
|
||||||
let $httpBackend;
|
let $httpBackend;
|
||||||
|
let $httpParamSerializer;
|
||||||
beforeEach(ngModule('supplier'));
|
beforeEach(ngModule('supplier'));
|
||||||
|
|
||||||
beforeEach(inject(($componentController, $rootScope, _$httpBackend_) => {
|
beforeEach(inject(($componentController, $rootScope, _$httpBackend_, _$httpParamSerializer_) => {
|
||||||
$httpBackend = _$httpBackend_;
|
$httpBackend = _$httpBackend_;
|
||||||
|
$httpParamSerializer = _$httpParamSerializer_;
|
||||||
$scope = $rootScope.$new();
|
$scope = $rootScope.$new();
|
||||||
$scope.bankEntity = {
|
$scope.bankEntity = {
|
||||||
open: () => {}
|
open: () => {}
|
||||||
|
@ -60,6 +62,14 @@ describe('Supplier Component vnSupplierAccount', () => {
|
||||||
countryFk: 1,
|
countryFk: 1,
|
||||||
id: 2200
|
id: 2200
|
||||||
};
|
};
|
||||||
|
const expectedParams = {
|
||||||
|
filter: {
|
||||||
|
where: {code: 'wireTransfer'}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const serializedParams = $httpParamSerializer(expectedParams);
|
||||||
|
|
||||||
|
$httpBackend.when('GET', `payMethods/findOne?${serializedParams}`).respond({id: 1});
|
||||||
|
|
||||||
const query = `SupplierAccounts/${controller.$.bankEntity.id}/createBankEntity`;
|
const query = `SupplierAccounts/${controller.$.bankEntity.id}/createBankEntity`;
|
||||||
$httpBackend.expectPATCH(query).respond({id: 2200});
|
$httpBackend.expectPATCH(query).respond({id: 2200});
|
||||||
|
|
Loading…
Reference in New Issue