Skip to content

Commit fe77867

Browse files
committed
Cleanup annotation tests
1 parent 6911662 commit fe77867

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

annotations/index.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const testRunner = (version: number, dialect: string) => {
5858
continue;
5959
}
6060

61-
describe(testCase.description + "\n" + JSON.stringify(testCase.schema, null, " "), () => {
61+
describe(testCase.description, () => {
6262
let annotator: Annotator;
6363
let id: string;
6464

@@ -82,7 +82,7 @@ const testRunner = (version: number, dialect: string) => {
8282
});
8383

8484
for (const assertion of subject.assertions) {
85-
test(`${assertion.keyword} annotations at '${assertion.location}' should be ${JSON.stringify(assertion.expected)}`, () => {
85+
test(`${assertion.keyword} annotations at '${assertion.location}' should be ${JSON.stringify(Object.values(assertion.expected))}`, () => {
8686
const schemaDialect: string | undefined = testCase.schema.$schema ? toAbsoluteIri(testCase.schema.$schema as string) : dialect;
8787
const subject = Instance.get(`#${assertion.location}`, instance);
8888
const annotations = subject ? Instance.annotation(subject, assertion.keyword, schemaDialect) : [];

0 commit comments

Comments
 (0)