@@ -22,11 +22,12 @@ Deno.test("tryResolveUserLatestJson", async () => {
2222 {
2323 const result = await getValidResultForUrl ( "https://plugins.dprint.dev/dprint/typescript/latest.json" ) ;
2424 const releaseInfo = await getLatestReleaseInfo ( "dprint" , "dprint-plugin-typescript" ) ;
25+ assertEquals ( releaseInfo ?. checksum ?. length , 64 ) ;
2526 assertEquals ( result , {
2627 schemaVersion : 1 ,
2728 url : `https://plugins.dprint.dev/typescript-${ releaseInfo ! . tagName } .wasm` ,
2829 version : releaseInfo ! . tagName ,
29- checksum : undefined ,
30+ checksum : releaseInfo ! . checksum ,
3031 } ) ;
3132 }
3233 // dprint repo full name
@@ -35,11 +36,12 @@ Deno.test("tryResolveUserLatestJson", async () => {
3536 "https://plugins.dprint.dev/dprint/dprint-plugin-typescript/latest.json" ,
3637 ) ;
3738 const releaseInfo = await getLatestReleaseInfo ( "dprint" , "dprint-plugin-typescript" ) ;
39+ assertEquals ( releaseInfo ?. checksum ?. length , 64 ) ;
3840 assertEquals ( result , {
3941 schemaVersion : 1 ,
4042 url : `https://plugins.dprint.dev/typescript-${ releaseInfo ! . tagName } .wasm` ,
4143 version : releaseInfo ! . tagName ,
42- checksum : undefined ,
44+ checksum : releaseInfo ! . checksum ,
4345 } ) ;
4446 }
4547 // non-dprint repo
@@ -50,7 +52,7 @@ Deno.test("tryResolveUserLatestJson", async () => {
5052 schemaVersion : 1 ,
5153 url : `https://plugins.dprint.dev/malobre/vue-${ releaseInfo ! . tagName } .wasm` ,
5254 version : releaseInfo ! . tagName . replace ( / ^ v / , "" ) ,
53- checksum : undefined ,
55+ checksum : releaseInfo ! . checksum ,
5456 } ) ;
5557 }
5658 // non-dprint repo full name
@@ -61,7 +63,7 @@ Deno.test("tryResolveUserLatestJson", async () => {
6163 schemaVersion : 1 ,
6264 url : `https://plugins.dprint.dev/malobre/vue-${ releaseInfo ! . tagName } .wasm` ,
6365 version : releaseInfo ! . tagName . replace ( / ^ v / , "" ) ,
64- checksum : undefined ,
66+ checksum : releaseInfo ! . checksum ,
6567 } ) ;
6668 }
6769 // process plugin repo
0 commit comments