Skip to content

Commit 57d3b45

Browse files
committed
test: Expect ArrayShape instead of ScalarShape
1 parent 869cd93 commit 57d3b45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/api-type-document.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,15 +341,15 @@ describe('<api-type-document>', () => {
341341
assert.isUndefined(result);
342342
});
343343

344-
it('Computes union type for an array item', async () => {
344+
it('Computes union type for an array', async () => {
345345
const [amf, type] = await AmfLoader.loadType('UnionArray', item[1]);
346346
element.amf = amf;
347347
key = element._getAmfKey(element.ns.aml.vocabularies.shapes.anyOf);
348348
const result = element._computeProperty(type, key, 0);
349349
assert.isTrue(
350350
element._hasType(
351351
result,
352-
element.ns.aml.vocabularies.shapes.ScalarShape
352+
element.ns.aml.vocabularies.shapes.ArrayShape
353353
)
354354
);
355355
});

0 commit comments

Comments
 (0)