mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat(repository): add ability to set and get namespace
This commit is contained in:
parent
b8b69100f1
commit
9acf3a8a9e
3 changed files with 45 additions and 19 deletions
|
@ -83,6 +83,14 @@ void main() {
|
|||
});
|
||||
|
||||
test('returns empty string when there is no namespace', () {
|
||||
expect(repo.getNamespace(), isEmpty);
|
||||
});
|
||||
|
||||
test('successfully sets and unsets the namespace', () {
|
||||
expect(repo.getNamespace(), '');
|
||||
repo.setNamespace('some');
|
||||
expect(repo.getNamespace(), 'some');
|
||||
repo.setNamespace(null);
|
||||
expect(repo.getNamespace(), '');
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue