style: Fix linter warnings
This commit is contained in:
parent
5a097e4d2a
commit
800b53b11f
2
.gitlint
2
.gitlint
@ -5,6 +5,6 @@ line-length=72
|
|||||||
[title-trailing-punctuation]
|
[title-trailing-punctuation]
|
||||||
[title-hard-tab]
|
[title-hard-tab]
|
||||||
[title-match-regex]
|
[title-match-regex]
|
||||||
regex=^(feat|fix|test|release|chore|security|docs|refactor):.*$
|
regex=^(feat|fix|test|release|chore|security|docs|refactor|style):.*$
|
||||||
[body-trailing-whitespace]
|
[body-trailing-whitespace]
|
||||||
[body-first-line-empty]
|
[body-first-line-empty]
|
||||||
|
@ -444,7 +444,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Alice sends a message to those two Bobs
|
// Alice sends a message to those two Bobs
|
||||||
final aliceMessage = await aliceSession.encryptToJid(
|
await aliceSession.encryptToJid(
|
||||||
bobJid,
|
bobJid,
|
||||||
'Hallo Welt',
|
'Hallo Welt',
|
||||||
newSessions: [
|
newSessions: [
|
||||||
@ -458,7 +458,7 @@ void main() {
|
|||||||
final id2 = (await bobSession2.getDevice()).id;
|
final id2 = (await bobSession2.getDevice()).id;
|
||||||
await aliceSession.removeRatchet(bobJid, id1);
|
await aliceSession.removeRatchet(bobJid, id1);
|
||||||
|
|
||||||
final map = await aliceSession.getRatchetMap();
|
final map = aliceSession.getRatchetMap();
|
||||||
expect(map.containsKey(RatchetMapKey(bobJid, id1)), false);
|
expect(map.containsKey(RatchetMapKey(bobJid, id1)), false);
|
||||||
expect(map.containsKey(RatchetMapKey(bobJid, id2)), true);
|
expect(map.containsKey(RatchetMapKey(bobJid, id2)), true);
|
||||||
final deviceMap = await aliceSession.getDeviceMap();
|
final deviceMap = await aliceSession.getDeviceMap();
|
||||||
@ -481,7 +481,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Alice sends a message to those two Bobs
|
// Alice sends a message to those two Bobs
|
||||||
final aliceMessage = await aliceSession.encryptToJid(
|
await aliceSession.encryptToJid(
|
||||||
bobJid,
|
bobJid,
|
||||||
'Hallo Welt',
|
'Hallo Welt',
|
||||||
newSessions: [
|
newSessions: [
|
||||||
@ -493,7 +493,7 @@ void main() {
|
|||||||
final id = (await bobSession.getDevice()).id;
|
final id = (await bobSession.getDevice()).id;
|
||||||
await aliceSession.removeRatchet(bobJid, id);
|
await aliceSession.removeRatchet(bobJid, id);
|
||||||
|
|
||||||
final map = await aliceSession.getRatchetMap();
|
final map = aliceSession.getRatchetMap();
|
||||||
expect(map.containsKey(RatchetMapKey(bobJid, id)), false);
|
expect(map.containsKey(RatchetMapKey(bobJid, id)), false);
|
||||||
final deviceMap = await aliceSession.getDeviceMap();
|
final deviceMap = await aliceSession.getDeviceMap();
|
||||||
expect(deviceMap.containsKey(bobJid), false);
|
expect(deviceMap.containsKey(bobJid), false);
|
||||||
|
Loading…
Reference in New Issue
Block a user