We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bdacaf commit 90fe9bbCopy full SHA for 90fe9bb
context-api/context-api.test.ts
@@ -126,26 +126,26 @@ describe("context api", () => {
126
},
127
});
128
129
- await run(function*() {
+ await run(function* () {
130
yield* math.around({
131
*add([left, right], next) {
132
return 10 + (yield* next(left, right));
133
- }
+ },
134
135
136
137
138
return 100 + (yield* next(left, right));
139
140
- })
+ });
141
142
- yield* math.around({
+ yield* math.around({
143
144
return 20 + (yield* next(left, right));
145
146
147
-
+
148
expect(yield* math.operations.add(5, 15)).toEqual(150);
149
150
151
0 commit comments