@hn3000/json-ref
Version:
simple resolver for json reference and json pointer
44 lines (43 loc) • 1.89 kB
TypeScript
import { TestClass } from "@hn3000/tsunit-async";
export declare class JsonPointerTest extends TestClass {
private json;
constructor();
testHasJson(): void;
testEmptyPointerReturnsOriginalObject(): void;
testSimplePointerReturnsReferencedProperty(): void;
testArrayIndexReturnsArrayElement(): void;
testArrayIndexDashReturnsArrayElementAfterLast(): void;
testObjectPropDashReturnsProperty(): void;
testEmptyPropertyNameWorks(): void;
testPointer(p: string, v: any): void;
testToStringIsIdenticalToInput(p: string): void;
testPointerGet(p: string, v: any): void;
testDeref(p: string, v: any): void;
testHasParent(p: string, shouldHaveParent: boolean): void;
testParent(p: string, expectedParent: string): void;
testPointerGetFromJsonPointer(): void;
testJsonPointerWalkObject(): void;
testJsonPointerPaths(): void;
testJsonPointerPointers(): void;
testJsonPointerPointersWithPredicate(): void;
testPointerSetValue(): void;
testPointerSetValueWithMissingIntermediates(): void;
testPointerSetValueWithMissingIntermediatesButNoCreatePath(): void;
testPointerSetValueWithMissingRoot(): void;
testPointerSetValueWithMissingRootStartingWithArray(): void;
testPointerSetValueWithEmptyPath(): void;
testPointerSetValueAppending(): void;
testPointerWithValue(): void;
testPointerWithValueDeepCreatePath(): void;
testPointerWithValueDeep(): void;
testPointerWithValueDeepInArray(): void;
testPointerWithValueDeepInNewArrayMember(): void;
testPointerDeleteValue(): void;
testPointerDeleteMissingValue(): void;
testPointerSegmentGet(): void;
testJsonPointerStringArray(): void;
testNewJsonPointerEmptyArray(): void;
testNewJsonPointerEmptyString(): void;
testJsonPointerGetEmptyString(): void;
testJsonPointerGetEmptyStringArray(): void;
}