fix(core): update
This commit is contained in:
parent
90bef4b1f8
commit
4ed7ad210e
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user