Skip to content

Commit a5b5723

Browse files
committed
test: remove @context assertions from compact flattened model
withCompactUris() was removed from compact model to preserve declared types in @graph; as a result withCompactedEmission() no longer generates @context. Validate structure with assertValidAmfModel() instead. Made-with: Cursor
1 parent 7292179 commit a5b5723

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

test/api-generation.test.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,7 @@ describe('API generation', () => {
203203
.then((exists) => assert.isTrue(exists))
204204
.then(() => fs.readJson(compactFlattenedModelFile))
205205
.then((data) => {
206-
const graph = data['@graph'];
207-
assert.isDefined(graph);
208-
const ctx = data['@context'];
209-
assert.typeOf(ctx, 'object');
206+
assertValidAmfModel(data);
210207
}));
211208
});
212209

@@ -236,8 +233,6 @@ describe('API generation', () => {
236233
.then(() => fs.readJson(compactModelFile))
237234
.then((data) => {
238235
assertValidAmfModel(data);
239-
const ctx = data['@context'];
240-
assert.typeOf(ctx, 'object');
241236
}));
242237
});
243238

0 commit comments

Comments
 (0)