format!(r".*<video .*>\s*<source src=/content/{inscription_id}>.*"), ); } #[test] fn inscription_page_title() { let server = TestServer::new_with_regtest_with_index_sats(); server.mine_blocks(1); let txid = server.bitcoin_rpc_server.broadcast_tx(TransactionTemplate { inputs: &[(1, 0, 0, inscription("text/foo", "hello").to_witness())], ..Default::default() }); server.mine_blocks(1); server.assert_response_regex( format!("/inscription/{}", InscriptionId { txid, index: 0 }), StatusCode::OK, ".*<title>Inscription 0</title>.*", ); } #[test] fn inscription_page_has_sat_when_sats_are_tracked() { let server = TestServer::new_with_regtest_with_index_sats(); server.mine_blocks(1); let txid = server.bitcoin_rpc_server.broadcast_tx(TransactionTemplate { inputs: &[(1, 0, 0, inscription("text/foo", "hello").to_witness())], ..Default::default() }); server.mine_blocks(1); server.assert_response_regex( format!("/inscription/{}", InscriptionId { txid, index: 0 }),
Inscription number 44,981,800
Genesis block 819,058
File type text
File size 1.07 KB
Creation date Dec 1,2023 5:42 am