mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
Prevent duplicate hash channels
This commit is contained in:
@@ -17,5 +17,25 @@ void main() {
|
||||
isTrue,
|
||||
);
|
||||
});
|
||||
|
||||
test('treats duplicate hashtag channels as conflicts', () {
|
||||
expect(
|
||||
ConnectionProvider.isDuplicateChannelName(
|
||||
requestedName: '#sar',
|
||||
existingName: '#sar',
|
||||
),
|
||||
isTrue,
|
||||
);
|
||||
});
|
||||
|
||||
test('allows private channels with the same name to coexist', () {
|
||||
expect(
|
||||
ConnectionProvider.isDuplicateChannelName(
|
||||
requestedName: 'Ops',
|
||||
existingName: 'Ops',
|
||||
),
|
||||
isFalse,
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user