webpipe-js 2.0.18 → 2.0.20
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 +16 -8
- package/dist/index.mjs +16 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1061,17 +1061,25 @@ 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 withMock = this.tryParse(() => this.parseMock());
|
|
1068
|
+
if (withMock) {
|
|
1069
|
+
mocks.push(withMock);
|
|
1070
|
+
continue;
|
|
1071
|
+
}
|
|
1072
|
+
const andMock = this.tryParse(() => this.parseAndMock());
|
|
1073
|
+
if (andMock) {
|
|
1074
|
+
mocks.push(andMock);
|
|
1075
|
+
continue;
|
|
1076
|
+
}
|
|
1072
1077
|
const it = this.tryParse(() => this.parseIt());
|
|
1073
|
-
if (
|
|
1074
|
-
|
|
1078
|
+
if (it) {
|
|
1079
|
+
tests.push(it);
|
|
1080
|
+
continue;
|
|
1081
|
+
}
|
|
1082
|
+
break;
|
|
1075
1083
|
}
|
|
1076
1084
|
return { name, mocks, tests, inlineComment: inlineComment || void 0 };
|
|
1077
1085
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1011,17 +1011,25 @@ 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 withMock = this.tryParse(() => this.parseMock());
|
|
1018
|
+
if (withMock) {
|
|
1019
|
+
mocks.push(withMock);
|
|
1020
|
+
continue;
|
|
1021
|
+
}
|
|
1022
|
+
const andMock = this.tryParse(() => this.parseAndMock());
|
|
1023
|
+
if (andMock) {
|
|
1024
|
+
mocks.push(andMock);
|
|
1025
|
+
continue;
|
|
1026
|
+
}
|
|
1022
1027
|
const it = this.tryParse(() => this.parseIt());
|
|
1023
|
-
if (
|
|
1024
|
-
|
|
1028
|
+
if (it) {
|
|
1029
|
+
tests.push(it);
|
|
1030
|
+
continue;
|
|
1031
|
+
}
|
|
1032
|
+
break;
|
|
1025
1033
|
}
|
|
1026
1034
|
return { name, mocks, tests, inlineComment: inlineComment || void 0 };
|
|
1027
1035
|
}
|