Skip to content

Commit 56b1c95

Browse files
fix unit tests
1 parent f8fa512 commit 56b1c95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/abapObject/src/AbapObject.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ test("create class main include", async () => {
278278

279279
test("create class definitions include", async () => {
280280
const client = mock<AbapObjectService>()
281+
client.objectStructure.mockResolvedValue(classMetaData())
281282
const cut = create(
282283
"CLAS/I",
283284
"ZCL_Z001_DPC_EXT.definitions",
@@ -291,7 +292,7 @@ test("create class definitions include", async () => {
291292
if (!isAbapClassInclude(cut)) fail("Class include expected")
292293
expect(cut.fsName).toBe("ZCL_Z001_DPC_EXT.clas.locals_def.abap")
293294
expect(cut.key).toBe("CLAS/I ZCL_Z001_DPC_EXT.definitions")
294-
await supportedFileAssertions(cut, client)
295+
await supportedFileAssertions(cut, client, false)
295296
expect(cut.contentsPath()).toBe(cut.path)
296297
})
297298

0 commit comments

Comments
 (0)