fix format duration rounding days error (#582)

* fix format duration rounding days error
* added tests

Signed-off-by: Sebastian Malton <smalton@mirantis.com>

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
Sebastian MaltonandSebastian Malton authored and GitHub committed 2020-07-15 09:45:52 -04:00
1 parent 55687b7d35
commit 4bd29a6d88
6 files changed
+91 -22

No files matched your search

-3
View File
@@ -13,7 +13,6 @@ describe("for an empty config", () => {
}
}
mockFs(mockOpts)
const userStore = UserStore.getInstance()
})
afterEach(() => {
@@ -57,12 +56,10 @@ describe("migrations", () => {
'config.json': JSON.stringify({
user: { username: 'foobar' },
preferences: { colorTheme: 'light' },
lastSeenAppVersion: '1.2.3'
})
}
}
mockFs(mockOpts)
const userStore = UserStore.getInstance()
})
afterEach(() => {