From 8d8e0ebbb8a2f8edb02ef8085c1db306b7dc49d1 Mon Sep 17 00:00:00 2001 From: Joel Carter Date: Mon, 16 Dec 2024 06:25:56 -0600 Subject: [PATCH] Tests for qualified sequence --- .vscode/launch.json | 2 +- .../packages/model/src/StorageMeta/spec/SequenceParser.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index c6a1ba6332..22167df469 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -26,7 +26,7 @@ "--run", "--inspect-brk", "--no-file-parallelism", - "packages/protocol/packages/payload/packages/model/src/StorageMeta/spec/SequenceParser.spec.ts" + "packages/modules/packages/diviner/packages/indexing/packages/temporal/packages/memory/src/StateToIndexCandidateDiviner/spec/Diviner.spec.ts" ], "sourceMaps": true, "resolveSourceMapLocations": [ diff --git a/packages/protocol/packages/payload/packages/model/src/StorageMeta/spec/SequenceParser.spec.ts b/packages/protocol/packages/payload/packages/model/src/StorageMeta/spec/SequenceParser.spec.ts index 1d0f11bfd2..e4ac6e8c0d 100644 --- a/packages/protocol/packages/payload/packages/model/src/StorageMeta/spec/SequenceParser.spec.ts +++ b/packages/protocol/packages/payload/packages/model/src/StorageMeta/spec/SequenceParser.spec.ts @@ -75,7 +75,7 @@ describe('SequenceParser', () => { describe('qualifiedSequence', () => { it('concatenates localSequence and address correctly', () => { - expect(parsed.localSequence).toBe(`${parsed.epoch}${parsed.nonce}${parsed.address}`) + expect(parsed.qualifiedSequence).toBe(`${parsed.epoch}${parsed.nonce}${parsed.address}`) expect(parsed.qualifiedSequence).toBe(`${parsed.localSequence}${parsed.address}`) expect(parsed.qualifiedSequence).toBe( '0000011f71fb04cbe5045e30ad20fbb1b36d327210f67ad98be881ddf6ad1f1b3e2c5137',