Updated unit test
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
873fc54dff
commit
9363726d67
|
@ -66,6 +66,13 @@ describe('Entry', () => {
|
||||||
|
|
||||||
describe('onEditAccept()', () => {
|
describe('onEditAccept()', () => {
|
||||||
it(`should perform a query to update columns`, () => {
|
it(`should perform a query to update columns`, () => {
|
||||||
|
$httpBackend.whenGET('UserConfigViews/getConfig?tableCode=latestBuys').respond([]);
|
||||||
|
$httpBackend.whenGET('Buys/latestBuysFilter?filter=%7B%22limit%22:20%7D').respond([
|
||||||
|
{entryFk: 1},
|
||||||
|
{entryFk: 2},
|
||||||
|
{entryFk: 3},
|
||||||
|
{entryFk: 4}
|
||||||
|
]);
|
||||||
controller.editedColumn = {field: 'my field', newValue: 'the new value'};
|
controller.editedColumn = {field: 'my field', newValue: 'the new value'};
|
||||||
let query = 'Buys/editLatestBuys';
|
let query = 'Buys/editLatestBuys';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue