webpipe-js 2.0.18 → 2.0.19
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/dist/index.cjs +11 -8
- package/dist/index.mjs +11 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1061,17 +1061,20 @@ var Parser = class {
|
|
|
1061
1061
|
const inlineComment = this.parseInlineComment();
|
|
1062
1062
|
this.skipSpaces();
|
|
1063
1063
|
const mocks = [];
|
|
1064
|
-
while (true) {
|
|
1065
|
-
const m = this.tryParse(() => this.parseMock());
|
|
1066
|
-
if (!m) break;
|
|
1067
|
-
mocks.push(m);
|
|
1068
|
-
this.skipSpaces();
|
|
1069
|
-
}
|
|
1070
1064
|
const tests = [];
|
|
1071
1065
|
while (true) {
|
|
1066
|
+
this.skipSpaces();
|
|
1067
|
+
const m = this.tryParse(() => this.parseMock());
|
|
1068
|
+
if (m) {
|
|
1069
|
+
mocks.push(m);
|
|
1070
|
+
continue;
|
|
1071
|
+
}
|
|
1072
1072
|
const it = this.tryParse(() => this.parseIt());
|
|
1073
|
-
if (
|
|
1074
|
-
|
|
1073
|
+
if (it) {
|
|
1074
|
+
tests.push(it);
|
|
1075
|
+
continue;
|
|
1076
|
+
}
|
|
1077
|
+
break;
|
|
1075
1078
|
}
|
|
1076
1079
|
return { name, mocks, tests, inlineComment: inlineComment || void 0 };
|
|
1077
1080
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1011,17 +1011,20 @@ var Parser = class {
|
|
|
1011
1011
|
const inlineComment = this.parseInlineComment();
|
|
1012
1012
|
this.skipSpaces();
|
|
1013
1013
|
const mocks = [];
|
|
1014
|
-
while (true) {
|
|
1015
|
-
const m = this.tryParse(() => this.parseMock());
|
|
1016
|
-
if (!m) break;
|
|
1017
|
-
mocks.push(m);
|
|
1018
|
-
this.skipSpaces();
|
|
1019
|
-
}
|
|
1020
1014
|
const tests = [];
|
|
1021
1015
|
while (true) {
|
|
1016
|
+
this.skipSpaces();
|
|
1017
|
+
const m = this.tryParse(() => this.parseMock());
|
|
1018
|
+
if (m) {
|
|
1019
|
+
mocks.push(m);
|
|
1020
|
+
continue;
|
|
1021
|
+
}
|
|
1022
1022
|
const it = this.tryParse(() => this.parseIt());
|
|
1023
|
-
if (
|
|
1024
|
-
|
|
1023
|
+
if (it) {
|
|
1024
|
+
tests.push(it);
|
|
1025
|
+
continue;
|
|
1026
|
+
}
|
|
1027
|
+
break;
|
|
1025
1028
|
}
|
|
1026
1029
|
return { name, mocks, tests, inlineComment: inlineComment || void 0 };
|
|
1027
1030
|
}
|