@player-ui/async-node-plugin 0.9.1-next.0 → 0.9.1-next.2
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/package.json
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"types"
|
|
7
7
|
],
|
|
8
8
|
"name": "@player-ui/async-node-plugin",
|
|
9
|
-
"version": "0.9.1-next.
|
|
9
|
+
"version": "0.9.1-next.2",
|
|
10
10
|
"main": "dist/cjs/index.cjs",
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@player-ui/player": "0.9.1-next.
|
|
12
|
+
"@player-ui/player": "0.9.1-next.2"
|
|
13
13
|
},
|
|
14
14
|
"module": "dist/index.legacy-esm.js",
|
|
15
15
|
"types": "types/index.d.ts",
|
package/src/index.test.ts
CHANGED
|
@@ -335,8 +335,8 @@ describe("view", () => {
|
|
|
335
335
|
?.lastUpdate;
|
|
336
336
|
|
|
337
337
|
expect(view?.actions[0].asset.type).toBe("action");
|
|
338
|
-
expect(view?.actions[1].asset.type).toBe("text");
|
|
339
|
-
expect(view?.actions[
|
|
338
|
+
expect(view?.actions[1][0].asset.type).toBe("text");
|
|
339
|
+
expect(view?.actions[1][1].asset.type).toBe("text");
|
|
340
340
|
});
|
|
341
341
|
|
|
342
342
|
test("replaces async nodes with chained multiNodes", async () => {
|
|
@@ -400,7 +400,7 @@ describe("view", () => {
|
|
|
400
400
|
?.lastUpdate;
|
|
401
401
|
|
|
402
402
|
expect(view?.actions[0].asset.type).toBe("action");
|
|
403
|
-
expect(view?.actions[1].asset.type).toBe("text");
|
|
403
|
+
expect(view?.actions[1][0].asset.type).toBe("text");
|
|
404
404
|
expect(view?.actions[2]).toBeUndefined();
|
|
405
405
|
expect(updateNumber).toBe(2);
|
|
406
406
|
|
|
@@ -431,9 +431,9 @@ describe("view", () => {
|
|
|
431
431
|
?.lastUpdate;
|
|
432
432
|
|
|
433
433
|
expect(view?.actions[0].asset.type).toBe("action");
|
|
434
|
-
expect(view?.actions[1].asset.type).toBe("text");
|
|
435
|
-
expect(view?.actions[
|
|
436
|
-
expect(view?.actions[
|
|
434
|
+
expect(view?.actions[1][0].asset.type).toBe("text");
|
|
435
|
+
expect(view?.actions[1][1][0].asset.type).toBe("text");
|
|
436
|
+
expect(view?.actions[1][1][1].asset.type).toBe("text");
|
|
437
437
|
});
|
|
438
438
|
|
|
439
439
|
test("replaces async nodes with chained multiNodes singular", async () => {
|
|
@@ -497,7 +497,7 @@ describe("view", () => {
|
|
|
497
497
|
?.lastUpdate;
|
|
498
498
|
|
|
499
499
|
expect(view?.actions[0].asset.type).toBe("action");
|
|
500
|
-
expect(view?.actions[1].asset.type).toBe("text");
|
|
500
|
+
expect(view?.actions[1][0].asset.type).toBe("text");
|
|
501
501
|
expect(view?.actions[2]).toBeUndefined();
|
|
502
502
|
|
|
503
503
|
if (deferredResolve) {
|
|
@@ -518,8 +518,8 @@ describe("view", () => {
|
|
|
518
518
|
?.lastUpdate;
|
|
519
519
|
|
|
520
520
|
expect(view?.actions[0].asset.type).toBe("action");
|
|
521
|
-
expect(view?.actions[1].asset.type).toBe("text");
|
|
522
|
-
expect(view?.actions[
|
|
521
|
+
expect(view?.actions[1][0].asset.type).toBe("text");
|
|
522
|
+
expect(view?.actions[1][1].asset.type).toBe("text");
|
|
523
523
|
});
|
|
524
524
|
|
|
525
525
|
test("should call onAsyncNode hook when async node is encountered", async () => {
|