import { assert } from "@fluidframework/common-utils" ; import { IFluidHandle } from "@fluidframework/core-interfaces" ; import { IFluidSerializer } from "@fluidframework/shared-object-base" ; /**
 * Test serializer implementation for merge tree tests
 */ export class TestSerializer implements IFluidSerializer { public constructor ( ) { } public get IFluidSerializer ( ) { return this ; } public encode ( input , bind ) { throw new Error ( "Method not implemented." ) ; } public decode ( input ) { throw new Error ( "Method not implemented." ) ; } public stringify ( value , bind ) { assert ( bind === undefined , "Test serializer should not be called with bind handles" ) ; return JSON . stringify ( value ) ; } public parse ( value ) { return JSON . parse ( value ) ; } }