From 09104470810681c27a4961332ace0d34d02cab19 Mon Sep 17 00:00:00 2001 From: Jinxing Lin <172601673@qq.com> Date: Sat, 30 May 2020 22:48:02 +0800 Subject: [PATCH] update packer unit test (#220) --- test/packer.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/packer.test.ts b/test/packer.test.ts index b69c340c..7b4dda54 100644 --- a/test/packer.test.ts +++ b/test/packer.test.ts @@ -13,7 +13,8 @@ const event: eventWithTime = { describe('pack', () => { it('can pack event', () => { const packedData = pack(event); - matchSnapshot(packedData, __filename, 'pack'); + const result = matchSnapshot(packedData, __filename, 'pack'); + expect(result.pass).to.true; }); });