feat(repository): add ability to set and get namespace

This commit is contained in:
Aleksey Kulikov 2021-07-09 15:38:15 +03:00
parent b8b69100f1
commit 9acf3a8a9e
3 changed files with 45 additions and 19 deletions

View file

@ -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(), '');
});