mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-17 01:43:08 +09:00
14 lines
380 B
JavaScript
14 lines
380 B
JavaScript
"use strict";
|
|
|
|
var diff = require("../diff")
|
|
var patch = require("../patch")
|
|
|
|
exports["test diff"] = require("./diff")
|
|
exports["test patch"] = require("./patch")
|
|
|
|
exports["test patch(a, diff(a, b)) => b"] = function(assert) {
|
|
var a = { a: { b: 1 }, c: { d: 2 } }
|
|
var b = { a: { e: 3 }, c: { d: 4 } }
|
|
|
|
assert.deepEqual(patch(a, diff(a, b)), b, "patch(a, diff(a, b)) => b")
|
|
}
|