feat: add ability to compare objects (#54)

This commit is contained in:
Aleksey Kulikov 2022-05-10 16:18:55 +03:00 committed by GitHub
parent 5dfedadfe6
commit bad40bdb61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 466 additions and 137 deletions

View file

@ -211,5 +211,12 @@ void main() {
expect(repo.stashes[0].toString(), contains('Stash{'));
});
test('supports value comparison', () {
File(filePath).writeAsStringSync('edit', mode: FileMode.append);
Stash.create(repo: repo, stasher: stasher, message: 'WIP');
expect(repo.stashes.first, equals(repo.stashes.first));
});
});
}