Skip to content

Commit

Permalink
fix: enhance get context api test
Browse files Browse the repository at this point in the history
  • Loading branch information
marufrasully committed Oct 8, 2024
1 parent b152a29 commit dd963ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/context/test/unit/api.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as manifest from "../../src/manifest";
import * as adpManifest from "../../src/adp-manifest";
import * as ui5Yaml from "../../src/ui5-yaml";
import * as ui5Model from "../../src/ui5-model";
import * as services from "../../src/services";
Expand Down Expand Up @@ -51,6 +52,9 @@ describe("context", () => {
const getServicesStub = jest
.spyOn(services, "getServices")
.mockResolvedValue({});
const finAdpdManifestPathStub = jest
.spyOn(adpManifest, "finAdpdManifestPath")
.mockResolvedValue("/path/to/app/variant");
const getViewFilesStub = jest
.spyOn(viewFiles, "getViewFiles")
.mockResolvedValue({});
Expand All @@ -67,6 +71,7 @@ describe("context", () => {
expect(getYamlDetailsStub).toHaveBeenCalled();
expect(getSemanticModelStub).toHaveBeenCalled();
expect(getServicesStub).toHaveBeenCalled();
expect(finAdpdManifestPathStub).toHaveBeenCalled();
expect(getViewFilesStub).toHaveBeenCalled();
expect(getControlIdsStub).toHaveBeenCalled();
expect(result).toContainAllKeys([
Expand Down

0 comments on commit dd963ee

Please sign in to comment.