Commit 51499a9
Compare class-hierarchy HTML keys as a set, not by order
`Object.keys(embeddedHtml)` / `Object.keys(fittedHtml)` reflect the
stored `embedded_html` / `fitted_html` key order, which is lexical
after the storage round-trip, not semantically meaningful — consumers
look these up by key. With the base CardDef key in RRI prefix form
(`@cardstack/base/card-api/CardDef`) it sorts ahead of the test realm's
`http://test-realm/...` keys, where the old `https://cardstack.com/...`
key sorted after. Compare the key sets order-independently so the
assertion tracks the contract (which types are present) rather than a
storage-dependent ordering.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent a525f27 commit 51499a9
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2029 | 2029 | | |
2030 | 2030 | | |
2031 | 2031 | | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
2032 | 2036 | | |
2033 | | - | |
| 2037 | + | |
2034 | 2038 | | |
2035 | 2039 | | |
2036 | 2040 | | |
2037 | 2041 | | |
2038 | | - | |
| 2042 | + | |
2039 | 2043 | | |
2040 | 2044 | | |
2041 | 2045 | | |
| |||
2178 | 2182 | | |
2179 | 2183 | | |
2180 | 2184 | | |
| 2185 | + | |
| 2186 | + | |
2181 | 2187 | | |
2182 | | - | |
| 2188 | + | |
2183 | 2189 | | |
2184 | 2190 | | |
2185 | 2191 | | |
2186 | 2192 | | |
2187 | | - | |
| 2193 | + | |
2188 | 2194 | | |
2189 | 2195 | | |
2190 | 2196 | | |
| |||
0 commit comments