Skip to content

Commit a4039fa

Browse files
committed
format
Signed-off-by: Morgan Kleene <[email protected]>
1 parent 7a8ec0e commit a4039fa

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

lib/tests/mocha/unit/assertions.spec.ts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,24 @@ describe('assertions', () => {
2424

2525
it('normalizes assertions', async () => {
2626
let assertion: any = {
27-
appliesToState: "unencrypted",
28-
id: "system-metadata",
27+
appliesToState: 'unencrypted',
28+
id: 'system-metadata',
2929
binding: {
30-
method: "jws",
31-
signature: "test-signature"
30+
method: 'jws',
31+
signature: 'test-signature',
3232
},
3333
signingKey: {
34-
"alg": "ES256",
35-
"key": new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]),
34+
alg: 'ES256',
35+
key: new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]),
3636
},
37-
scope: "payload",
37+
scope: 'payload',
3838
statement: {
39-
format: "json",
40-
schema: "system-metadata-v1",
41-
value: "{\"tdf_spec_version\":\"4.3.0\",\"creation_date\":\"2025-07-23T09:25:51.255364+02:00\",\"operating_system\":\"Mac OS X\",\"sdk_version\":\"Java-0.8.2-SNAPSHOT\",\"java_version\":\"17.0.14\",\"architecture\":\"aarch64\"}"
39+
format: 'json',
40+
schema: 'system-metadata-v1',
41+
value:
42+
'{"tdf_spec_version":"4.3.0","creation_date":"2025-07-23T09:25:51.255364+02:00","operating_system":"Mac OS X","sdk_version":"Java-0.8.2-SNAPSHOT","java_version":"17.0.14","architecture":"aarch64"}',
4243
},
43-
type: "other"
44+
type: 'other',
4445
};
4546

4647
let h1 = await assertions.hash(assertion);

0 commit comments

Comments
 (0)