From b9fadd25c6e0b96437d06001ad0b8d4366db7907 Mon Sep 17 00:00:00 2001 From: vjrj <vjrj@comunes.org> Date: Fri, 25 Oct 2024 21:24:02 +0200 Subject: [PATCH] Fixed tests --- test/g1_test.dart | 8 ++++---- test/ui_test.dart | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/g1_test.dart b/test/g1_test.dart index 501b4cce..3ca790a1 100644 --- a/test/g1_test.dart +++ b/test/g1_test.dart @@ -307,22 +307,22 @@ void main() { test('Extraction from a list separated by semicolons', () { const String listText = - 'EdWkzNABz7dPancFqW6JVLqv1wpGaQSxgWmMf1pmY7KG; ARErWXr3bhKYh8FqX9axMXxxRPXMuoZW4s73P1zBHUTY:BJH; 78ZwwgpgdH5uLZLbThUQH7LKwPgjMunYfLiCfUCySkM8:4VT'; + 'EdWkzNABz7dPancFqW6JVLqv1wpGaQSxgWmMf1pmY7KG; ARErWXr3bhKYh8FqX9axMXxxRPXMuoZW4s73P1zBHUTY:9bG; 78ZwwgpgdH5uLZLbThUQH7LKwPgjMunYfLiCfUCySkM8:4VT'; final List<Contact> result = parseMultipleKeys(listText); expect(result, <Contact>[ Contact(pubKey: 'EdWkzNABz7dPancFqW6JVLqv1wpGaQSxgWmMf1pmY7KG'), - Contact(pubKey: 'ARErWXr3bhKYh8FqX9axMXxxRPXMuoZW4s73P1zBHUTY:BJH'), + Contact(pubKey: 'ARErWXr3bhKYh8FqX9axMXxxRPXMuoZW4s73P1zBHUTY:9bG'), Contact(pubKey: '78ZwwgpgdH5uLZLbThUQH7LKwPgjMunYfLiCfUCySkM8:4VT') ]); }); test('Extraction from a list separated by spaces', () { const String listText = - 'EdWkzNABz7dPancFqW6JVLqv1wpGaQSxgWmMf1pmY7KG ARErWXr3bhKYh8FqX9axMXxxRPXMuoZW4s73P1zBHUTY:BJH 78ZwwgpgdH5uLZLbThUQH7LKwPgjMunYfLiCfUCySkM8:4VT'; + 'EdWkzNABz7dPancFqW6JVLqv1wpGaQSxgWmMf1pmY7KG ARErWXr3bhKYh8FqX9axMXxxRPXMuoZW4s73P1zBHUTY:9bG 78ZwwgpgdH5uLZLbThUQH7LKwPgjMunYfLiCfUCySkM8:4VT'; final List<Contact> result = parseMultipleKeys(listText); expect(result, <Contact>[ Contact(pubKey: 'EdWkzNABz7dPancFqW6JVLqv1wpGaQSxgWmMf1pmY7KG'), - Contact(pubKey: 'ARErWXr3bhKYh8FqX9axMXxxRPXMuoZW4s73P1zBHUTY:BJH'), + Contact(pubKey: 'ARErWXr3bhKYh8FqX9axMXxxRPXMuoZW4s73P1zBHUTY:9bG'), Contact(pubKey: '78ZwwgpgdH5uLZLbThUQH7LKwPgjMunYfLiCfUCySkM8:4VT') ]); }); diff --git a/test/ui_test.dart b/test/ui_test.dart index a5f8adaa..7e647b34 100644 --- a/test/ui_test.dart +++ b/test/ui_test.dart @@ -125,7 +125,7 @@ void main() { final Contact contact = Contact(pubKey: otherTestPubKey, name: 'John Doe'); final String result = humanizeContact(publicAddress, contact, true); - expect(result, 'John Doe (🔑 7XtC…3Hy6)'); + expect(result, 'John Doe (🗠7XtC…3Hy6)'); }); test( @@ -134,7 +134,7 @@ void main() { const String publicAddress = otherTestPubKey; final Contact contact = Contact(pubKey: testPubKey); final String result = humanizeContact(publicAddress, contact, true); - expect(result, '🔑 7wnD…efsu'); + expect(result, '🗠7wnD…efsu'); }); }); @@ -171,13 +171,13 @@ void main() { () { final Contact contact = Contact(pubKey: testPubKey); final String result = contact.title; - expect(result, '🔑 7wnD…efsu'); + expect(result, '🗠7wnD…efsu'); }); test('Should return subtitle when nick or name is provided', () { final Contact contact = Contact(pubKey: testPubKey, nick: 'JD'); final String? result = contact.subtitle; - expect(result, '🔑 7wnD…efsu'); + expect(result, '🗠7wnD…efsu'); }); test('Should return null subtitle when neither nick nor name is provided', -- GitLab