Fix tests

This commit is contained in:
Elitsa Marinovska
2021-05-06 10:58:27 +02:00
parent 7bcfd8dad9
commit 06d6133fcd
2 changed files with 15 additions and 8 deletions

View File

@@ -22,10 +22,10 @@
$timeout = _$timeout_;
contentResource = $injector.get("contentResource");
spyOn(contentResource, "getScaffoldByKey").and.callFake(
spyOn(contentResource, "getScaffoldByKeys").and.callFake(
function () {
var scaffold = mocksUtils.getMockVariantContent(1234, contentKey, contentUdi);
return $q.resolve(scaffold);
return $q.resolve([scaffold]);
}
);
// this seems to be required because of the poor promise implementation in localizationService (see TODO in that service)