summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHank <hank@mullvad.net>2022-09-30 10:18:58 +0200
committerHank <hank@mullvad.net>2022-09-30 15:40:18 +0200
commitc06565c9092509ae10711a0db8707f380b4b60de (patch)
tree2d5ff0c61084f7c7b7bdfaedf253918b03180655
parentfe496a690a3ffba6a5cef1b6a1860cdaad8c36c0 (diff)
downloadmullvadvpn-c06565c9092509ae10711a0db8707f380b4b60de.tar.xz
mullvadvpn-c06565c9092509ae10711a0db8707f380b4b60de.zip
Remove redundant tests
-rw-r--r--gui/test/unit/date-helper.spec.ts10
1 files changed, 0 insertions, 10 deletions
diff --git a/gui/test/unit/date-helper.spec.ts b/gui/test/unit/date-helper.spec.ts
index 940751bb78..5ed0cfa6da 100644
--- a/gui/test/unit/date-helper.spec.ts
+++ b/gui/test/unit/date-helper.spec.ts
@@ -160,15 +160,5 @@ describe('Date helper', () => {
expect(date.formatTimeLeft('2022-09-01', '2024-09-05')).to.equal('2 years left');
expect(date.formatTimeLeft('2022-09-01', '2025-08-31')).to.equal('2 years left');
expect(date.formatTimeLeft('2022-09-01', '2025-09-01')).to.equal('3 years left');
-
- expect(date.formatTimeLeft('2022-09-02', '2022-09-01')).to.equal('1 day ago');
- expect(date.formatTimeLeft('2022-09-05', '2022-09-01')).to.equal('4 days ago');
- expect(date.formatTimeLeft('2022-09-30', '2022-09-01')).to.equal('29 days ago');
- expect(date.formatTimeLeft('2023-09-01', '2022-09-01')).to.equal('365 days ago');
- expect(date.formatTimeLeft('2024-08-30', '2022-09-01')).to.equal('729 days ago');
- expect(date.formatTimeLeft('2024-08-31', '2022-09-01')).to.equal('2 years ago');
- expect(date.formatTimeLeft('2024-09-05', '2022-09-01')).to.equal('2 years ago');
- expect(date.formatTimeLeft('2025-08-31', '2022-09-01')).to.equal('2 years ago');
- expect(date.formatTimeLeft('2025-09-01', '2022-09-01')).to.equal('3 years ago');
});
});