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();