Skip to content

Commit db7f5ea

Browse files
committed
fix: failed heartbeat test and updated color
1 parent 8c47680 commit db7f5ea

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

src/features/transactions/components/heartbeat-transaction-info.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ type Props = {
1111

1212
export const heartbeatAddressLabel = 'Address'
1313

14-
// TODO: HB - Present the data we want to show
15-
1614
export function HeartbeatTransactionInfo({ transaction }: Props) {
1715
const items = useMemo(
1816
() => [

src/features/transactions/pages/transaction-page.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ describe('when rendering an app call transaction with ARC-56 app spec loaded', (
15671567
})
15681568
})
15691569

1570-
describe.only('when rendering a heartbeat transaction', () => {
1570+
describe('when rendering a heartbeat transaction', () => {
15711571
const transaction = transactionResultMother['localnet-HEARTBEAT1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ']().build()
15721572

15731573
it('should be rendered with the correct data', () => {
@@ -1586,8 +1586,8 @@ describe.only('when rendering a heartbeat transaction', () => {
15861586
items: [
15871587
{ term: transactionIdLabel, description: transaction.id },
15881588
{ term: transactionTypeLabel, description: 'Heartbeat' },
1589-
{ term: transactionTimestampLabel, description: expect.any(String) },
1590-
{ term: transactionBlockLabel, description: expect.any(String) },
1589+
{ term: transactionTimestampLabel, description: 'Sun, 24 December 2023 17:37:51' },
1590+
{ term: transactionBlockLabel, description: '1000' },
15911591
{ term: transactionFeeLabel, description: '0.001' },
15921592
{ term: transactionSenderLabel, description: 'HEARTBEATADDRESS123456789ABCDEFGHIJKLMNOPQRSTUVW' },
15931593
{ term: heartbeatAddressLabel, description: 'HEARTBEATADDRESS123456789ABCDEFGHIJKLMNOPQRSTUVW' },

src/index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
--key-registration: 107 94 9;
6060
--key-registration-foreground: 255 255 255;
6161

62-
--heartbeat: 53 130 56;
62+
--heartbeat: 222 204 0;
6363
--heartbeat-foreground: 255 255 255;
6464

6565
--error: 203 69 83;
@@ -127,7 +127,7 @@
127127
--key-registration: 164 144 20;
128128
--key-registration-foreground: 0 19 36;
129129

130-
--heartbeat: 76 175 79;
130+
--heartbeat: 255 234 0;
131131
--heartbeat-foreground: 255 255 255;
132132

133133
--error: 203 69 83;

src/tests/object-mother/transaction-result.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ export const transactionResultMother = {
9292
return new TransactionResultBuilder({
9393
'confirmed-round': 1000,
9494
fee: 1000,
95-
'first-valid': 995,
95+
'first-valid': 34675052,
9696
'genesis-hash': 'x9maOhZVCNkkZCgV6CcLpxd1ZgIgHwuAfg6fdG2FJo8=',
9797
'genesis-id': 'dockernet-v1',
9898
'heartbeat-transaction': {
9999
'hb-address': 'HEARTBEATADDRESS123456789ABCDEFGHIJKLMNOPQRSTUVW',
100100
},
101-
id: 'HEARTBEAT1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ',
102-
'last-valid': 1995,
103-
'round-time': 1234567890,
101+
id: 'HEARTBEAT1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZZZZZZZZ',
102+
'last-valid': 34676052,
103+
'round-time': 1703439471,
104104
sender: 'HEARTBEATADDRESS123456789ABCDEFGHIJKLMNOPQRSTUVW',
105105
'tx-type': TransactionType.hb,
106106
'close-rewards': 0,

0 commit comments

Comments
 (0)