Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[MM-18918] Migrate 'utils/server_version.jsx' and associated tests to TypeScript #3842

Merged
merged 2 commits into from
Oct 2, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove undefined test
  • Loading branch information
mjthomp95 committed Oct 2, 2019
commit 3ec2b37ea134097b799a7783ccc158a5c3e2cdbd
12 changes: 0 additions & 12 deletions utils/server_version.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
import {equalServerVersions, isServerVersionGreaterThanOrEqualTo} from 'utils/server_version';

describe('utils/server_version/equalServerVersions', () => {
test('should handle undefined values', () => {
const a = undefined; // eslint-disable-line no-undefined
const b = null;
expect(equalServerVersions(a, b)).toEqual(true);
});

test('should consider two empty versions as equal', () => {
const a = '';
const b = '';
Expand Down Expand Up @@ -66,12 +60,6 @@ describe('utils/server_version/equalServerVersions', () => {
});

describe('utils/server_version/isServerVersionGreaterThanOrEqualTo', () => {
test('should handle undefined values', () => {
const a = undefined; // eslint-disable-line no-undefined
const b = null;
expect(isServerVersionGreaterThanOrEqualTo(a, b)).toEqual(true);
});

test('should consider two empty versions as equal', () => {
const a = '';
const b = '';
Expand Down