From 4ed7ad210ea3e505ef5b819aed70aff965094165 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 17 Dec 2021 01:39:51 +0100 Subject: [PATCH] fix(core): update --- test/test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/test.ts b/test/test.ts index 5d4ca61..480873b 100644 --- a/test/test.ts +++ b/test/test.ts @@ -2,7 +2,13 @@ import { expect, tap } from '@pushrocks/tapbundle'; import * as smartdiff from '../ts/index'; tap.test('first test', async () => { - + const text1 = 'hi there'; + const text2 = 'hi Polly, there is a Sandwich.'; + const patch = smartdiff.createDiff(text1, text2); + console.log(patch); + const result = smartdiff.applyPatch(text1, patch); + console.log(result); + expect(result).to.equal(text2); }); tap.start();