Browse Source

fix test which reads modification time.

pull/3/head
Herbert Poul 4 years ago
parent
commit
f0b6f1f50d
  1. 2
      .github/workflows/dart.yml
  2. 4
      test/kdbx4_test.dart

2
.github/workflows/dart.yml

@ -40,4 +40,4 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage/lcov.info
base-path: .
# base-path: .

4
test/kdbx4_test.dart

@ -38,8 +38,10 @@ void main() {
test('Reading kdbx4_keeweb modification time', () async {
final file = await TestUtil.readKdbxFile('test/kdbx4_keeweb.kdbx');
final firstEntry = file.body.rootGroup.entries.first;
final createTime = firstEntry.times.creationTime.get();
expect(createTime, DateTime.utc(2020, 2, 26, 13, 40, 48));
final modTime = firstEntry.times.lastModificationTime.get();
expect(modTime, DateTime.utc(2020, 2, 26, 13, 40, 48));
expect(modTime, DateTime.utc(2020, 2, 26, 13, 40, 54));
});
test('Change kdbx4 modification time', () async {
final file = await TestUtil.readKdbxFile('test/kdbx4_keeweb.kdbx');

Loading…
Cancel
Save