From 99708384d9f4e41b4666115d2ed5d28a8671e579 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 9 Dec 2021 19:23:33 +0800 Subject: [PATCH] test: update snapshot --- examples/napi/__test__/typegen.spec.ts.md | 6 +++--- examples/napi/__test__/typegen.spec.ts.snap | Bin 1954 -> 1954 bytes 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/napi/__test__/typegen.spec.ts.md b/examples/napi/__test__/typegen.spec.ts.md index 3fe058e5..2428c0e5 100644 --- a/examples/napi/__test__/typegen.spec.ts.md +++ b/examples/napi/__test__/typegen.spec.ts.md @@ -38,7 +38,7 @@ Generated by [AVA](https://avajs.dev). }␊ export function either4(input: string | number | boolean | Obj): number␊ /** default enum values are continuos i32s start from 0 */␊ - export enum Kind {␊ + export const enum Kind {␊ /** Barks */␊ Dog = 0,␊ /** Kills birds */␊ @@ -47,7 +47,7 @@ Generated by [AVA](https://avajs.dev). Duck = 2␊ }␊ /** You could break the step and for an new continuous value. */␊ - export enum CustomNumEnum {␊ + export const enum CustomNumEnum {␊ One = 1,␊ Two = 2,␊ Three = 3,␊ @@ -78,7 +78,7 @@ Generated by [AVA](https://avajs.dev). age?: number | undefined | null␊ }␊ export function receiveAllOptionalObject(obj?: AllOptionalObject | undefined | null): void␊ - export enum ALIAS {␊ + export const enum ALIAS {␊ A = 0,␊ B = 1␊ }␊ diff --git a/examples/napi/__test__/typegen.spec.ts.snap b/examples/napi/__test__/typegen.spec.ts.snap index d60e614ed6df907f2aeff4b94a284940b2577236..75241bd8e649620fbe3b2d586fbf437a884fdd80 100644 GIT binary patch literal 1954 zcmV;T2VM9tBBQ z^xi*z{`Tw7HyZe7`&OfIv+;pl-*~_A;d}RP-JK^)3ogx_m}?peM&|F%&9U>LN)3qw z)tYRb8#|!0mQcx z#{q4V4L;bBrbWVH*(??%z6dNf%pC^TBimV9y@V3{yLlD|5fvh&(Mg-&MHa_iAP?5b zsp2sR!2fLABpq_{fV?B85HpnVfGoF2A2enu)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