From aaf950e2ad5c07d4423f9822e3a0ae9f7b8d2bdf Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 30 Mar 2020 16:09:32 +0530 Subject: re-format with prettier v2, fix HTML --- src/util/codec-test.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/util/codec-test.ts') diff --git a/src/util/codec-test.ts b/src/util/codec-test.ts index 7c7c93c7b..e25a9d3cd 100644 --- a/src/util/codec-test.ts +++ b/src/util/codec-test.ts @@ -19,7 +19,13 @@ */ import test from "ava"; -import { Codec, makeCodecForObject, makeCodecForConstString, codecForString, makeCodecForUnion } from "./codec"; +import { + Codec, + makeCodecForObject, + makeCodecForConstString, + codecForString, + makeCodecForUnion, +} from "./codec"; interface MyObj { foo: string; @@ -37,7 +43,7 @@ interface AltTwo { type MyUnion = AltOne | AltTwo; -test("basic codec", t => { +test("basic codec", (t) => { const myObjCodec = makeCodecForObject() .property("foo", codecForString) .build("MyObj"); @@ -49,7 +55,7 @@ test("basic codec", t => { }); }); -test("union", t => { +test("union", (t) => { const altOneCodec: Codec = makeCodecForObject() .property("type", makeCodecForConstString("one")) .property("foo", codecForString) -- cgit v1.2.3