mol_regexp 0.0.217 → 0.0.221
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node.test.js +15 -0
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +15 -0
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -901,6 +901,17 @@ var $;
|
|
|
901
901
|
;
|
|
902
902
|
"use strict";
|
|
903
903
|
var $;
|
|
904
|
+
(function ($) {
|
|
905
|
+
function $mol_dom_serialize(node) {
|
|
906
|
+
const serializer = new $.$mol_dom_context.XMLSerializer;
|
|
907
|
+
return serializer.serializeToString(node);
|
|
908
|
+
}
|
|
909
|
+
$.$mol_dom_serialize = $mol_dom_serialize;
|
|
910
|
+
})($ || ($ = {}));
|
|
911
|
+
//serialize.js.map
|
|
912
|
+
;
|
|
913
|
+
"use strict";
|
|
914
|
+
var $;
|
|
904
915
|
(function ($) {
|
|
905
916
|
$.$mol_test({
|
|
906
917
|
'must be false'() {
|
|
@@ -1018,6 +1029,10 @@ var $;
|
|
|
1018
1029
|
}
|
|
1019
1030
|
}
|
|
1020
1031
|
$.$mol_assert_like = $mol_assert_like;
|
|
1032
|
+
function $mol_assert_dom(left, right) {
|
|
1033
|
+
$mol_assert_equal($.$mol_dom_serialize(left), $.$mol_dom_serialize(right));
|
|
1034
|
+
}
|
|
1035
|
+
$.$mol_assert_dom = $mol_assert_dom;
|
|
1021
1036
|
})($ || ($ = {}));
|
|
1022
1037
|
//assert.js.map
|
|
1023
1038
|
;
|