@@ -26,7 +26,7 @@ import { verifySignature } from "@atproto/crypto";
2626import * as Activity from "../generated/types/org/hypercerts/claim/activity.js" ;
2727
2828const ROOT = resolve ( dirname ( fileURLToPath ( import . meta. url ) ) , ".." ) ;
29- const EXTRACT_DIR = resolve ( ROOT , "tests /extracted" ) ;
29+ const EXTRACT_DIR = resolve ( ROOT , "tmp /extracted-signing-examples " ) ;
3030
3131interface ExtractedExample {
3232 signedActivity : { signatures : unknown [ ] } ;
@@ -206,7 +206,7 @@ for (const [label, relPath, basename] of SOURCES) {
206206 expect ( example . inlineSignature . $type ) . toBe (
207207 "app.certified.signature.defs#inline" ,
208208 ) ;
209- expect ( example . inlineSignature . signature ) . toBe ( example . signatureBytes ) ;
209+ expect ( example . inlineSignature . signature ) . toEqual ( example . signatureBytes ) ;
210210 expect ( example . inlineSignature . key ) . toMatch ( / ^ d i d : [ ^ : ] + : .+ # .+ $ / ) ;
211211 } ) ;
212212
@@ -219,10 +219,10 @@ for (const [label, relPath, basename] of SOURCES) {
219219
220220 it ( "attaches both signatures to the final record" , ( ) => {
221221 expect ( example . signedActivity . signatures ) . toHaveLength ( 2 ) ;
222- expect ( example . signedActivity . signatures [ 0 ] ) . toBe (
222+ expect ( example . signedActivity . signatures [ 0 ] ) . toEqual (
223223 example . inlineSignature ,
224224 ) ;
225- expect ( example . signedActivity . signatures [ 1 ] ) . toBe (
225+ expect ( example . signedActivity . signatures [ 1 ] ) . toEqual (
226226 example . remoteAttestation ,
227227 ) ;
228228 } ) ;
0 commit comments