Skip to content

Commit b44f13e

Browse files
Jay Chouhanjaychouhancontentstack
authored andcommitted
chore: renamed the unit test cases names
1 parent c6b65b9 commit b44f13e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

__test__/extension.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,19 +161,19 @@ describe("Extension", () => {
161161
expect(extensionObj.getAppVersion).toBeDefined();
162162
});
163163

164-
it("should return a app version", async () => {
164+
it("should return an app version when invoked", async () => {
165165
const extensionObj = new Extension(initData);
166166
const version = await extensionObj.getAppVersion();
167167
expect(version).toBe(5);
168168
});
169169

170-
it("should return null for data without installation uid & manifest, this case is for jsonRte", async () => {
170+
it("should return null when installation uid is not present", async () => {
171171
const extensionObj = new Extension(initDataJsonRte as any);
172172
const version = await extensionObj.getAppVersion();
173173
expect(version).toBe(null);
174174
});
175175

176-
it("should execute the function without errors which calls postRobo init, this case is for customField where we dont get the manifest", async () => {
176+
it("should fetch the app version for parent using post robot", async () => {
177177
const extensionObj = new Extension(initDataWithoutManifest);
178178
const version = await extensionObj.getAppVersion();
179179
expect(version).toBe(90);

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export declare interface User {
3434
first_name: string;
3535
last_name: string;
3636
}
37+
3738
export declare interface Manifest {
3839
created_by: User;
3940
icon: string;

0 commit comments

Comments
 (0)