Skip to content

Commit 1b1345b

Browse files
committed
test blanknodes
1 parent 3fade1d commit 1b1345b

1 file changed

Lines changed: 24 additions & 16 deletions

File tree

src/trustedApplications/__snapshots__/trustedApplications.test.ts.snap

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ exports[`getStatementsToAdd should return all required statements to add the giv
88
"termType": "NamedNode",
99
"value": "https://profile.example",
1010
},
11-
"object": NamedNode {
12-
"classOrder": 5,
13-
"termType": "NamedNode",
14-
"value": "https://profile.example#mock_app_id",
11+
"object": BlankNode {
12+
"classOrder": 6,
13+
"isBlank": 1,
14+
"isVar": 1,
15+
"termType": "BlankNode",
16+
"value": "bn_mock_app_id",
1517
},
1618
"predicate": NamedNode {
1719
"classOrder": 5,
@@ -40,10 +42,12 @@ exports[`getStatementsToAdd should return all required statements to add the giv
4042
"termType": "NamedNode",
4143
"value": "http://www.w3.org/ns/auth/acl#origin",
4244
},
43-
"subject": NamedNode {
44-
"classOrder": 5,
45-
"termType": "NamedNode",
46-
"value": "https://profile.example#mock_app_id",
45+
"subject": BlankNode {
46+
"classOrder": 6,
47+
"isBlank": 1,
48+
"isVar": 1,
49+
"termType": "BlankNode",
50+
"value": "bn_mock_app_id",
4751
},
4852
},
4953
Statement {
@@ -62,10 +66,12 @@ exports[`getStatementsToAdd should return all required statements to add the giv
6266
"termType": "NamedNode",
6367
"value": "http://www.w3.org/ns/auth/acl#mode",
6468
},
65-
"subject": NamedNode {
66-
"classOrder": 5,
67-
"termType": "NamedNode",
68-
"value": "https://profile.example#mock_app_id",
69+
"subject": BlankNode {
70+
"classOrder": 6,
71+
"isBlank": 1,
72+
"isVar": 1,
73+
"termType": "BlankNode",
74+
"value": "bn_mock_app_id",
6975
},
7076
},
7177
Statement {
@@ -84,10 +90,12 @@ exports[`getStatementsToAdd should return all required statements to add the giv
8490
"termType": "NamedNode",
8591
"value": "http://www.w3.org/ns/auth/acl#mode",
8692
},
87-
"subject": NamedNode {
88-
"classOrder": 5,
89-
"termType": "NamedNode",
90-
"value": "https://profile.example#mock_app_id",
93+
"subject": BlankNode {
94+
"classOrder": 6,
95+
"isBlank": 1,
96+
"isVar": 1,
97+
"termType": "BlankNode",
98+
"value": "bn_mock_app_id",
9199
},
92100
},
93101
]

0 commit comments

Comments
 (0)