fix(core): update

This commit is contained in:
Philipp Kunz 2021-12-17 01:39:51 +01:00
parent 90bef4b1f8
commit 4ed7ad210e

View File

@ -2,7 +2,13 @@ import { expect, tap } from '@pushrocks/tapbundle';
import * as smartdiff from '../ts/index'; import * as smartdiff from '../ts/index';
tap.test('first test', async () => { 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(); tap.start();