Commit 43206afb authored by 水濑真白's avatar 水濑真白

chore: bump ygopro-jstest to 1.1.4 & ignore name in YRP snapshots

parent cc737962
Pipeline #43737 failed with stages
in 57 seconds
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"koishipro-core.js": "^1.3.10", "koishipro-core.js": "^1.3.10",
"sql.js": "^1.13.0", "sql.js": "^1.13.0",
"ygopro-cdb-encode": "^1.0.5", "ygopro-cdb-encode": "^1.0.5",
"ygopro-jstest": "^1.1.3", "ygopro-jstest": "^1.1.4",
"ygopro-msg-encode": "^1.1.31", "ygopro-msg-encode": "^1.1.31",
"ygopro-yrp-encode": "^1.0.1" "ygopro-yrp-encode": "^1.0.1"
}, },
......
...@@ -52,8 +52,10 @@ describe("YRP", () => { ...@@ -52,8 +52,10 @@ describe("YRP", () => {
expect(currentInfo.snapshot.chains).toEqual( expect(currentInfo.snapshot.chains).toEqual(
expectedInfo.snapshot.chains, expectedInfo.snapshot.chains,
); );
expect(currentInfo.snapshot.cards).toEqual( const stripSnapshotCards = (snapshot: YrpInfo['snapshot']) =>
expectedInfo.snapshot.cards, snapshot.cards.map(({ name, ...rest }) => rest);
expect(stripSnapshotCards(currentInfo.snapshot)).toEqual(
stripSnapshotCards(expectedInfo.snapshot),
); );
const sortMesssages = (messages: MsgSnapshot[]) => const sortMesssages = (messages: MsgSnapshot[]) =>
messages messages
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment