UNPKG

rdf-test-suite

Version:
19 lines (18 loc) 1.01 kB
import { Resource } from "rdf-object"; import { IFetchOptions } from "../../../Util"; import { ITestCase, ITestCaseData } from "../../ITestCase"; import { TestCaseEval, TestCaseEvalHandler } from "../TestCaseEval"; /** * Test case handler for: * * https://w3c.github.io/json-ld-api/tests/vocab#ToRDFTest * * https://w3c.github.io/json-ld-api/tests/vocab#PositiveEvaluationTest */ export declare class TestCaseJsonLdToRdfHandler extends TestCaseEvalHandler { static getOptions(resource: Resource, options?: IFetchOptions): Promise<{ injectArguments: any; testProperties: any; }>; static wrap<H, T extends ITestCase<H>>(superHandler: (resource: Resource, testCaseData: ITestCaseData, options?: IFetchOptions) => Promise<T>, resource: Resource, testCaseData: ITestCaseData, options?: IFetchOptions): Promise<T>; resourceToTestCase(resource: Resource, testCaseData: ITestCaseData, options?: IFetchOptions): Promise<TestCaseEval>; protected normalizeUrl(url: string): string; }