remove semi-colons

This commit is contained in:
Kurt Hutten IrevDev
2022-11-26 08:34:23 +11:00
parent ab9fb05e30
commit 48e59ac710
19 changed files with 1159 additions and 1122 deletions

View File

@ -1,19 +1,19 @@
import { isOverlapping } from "./utils";
import { Range } from "../useStore";
import { isOverlapping } from './utils'
import { Range } from '../useStore'
describe("testing isOverlapping", () => {
testBothOrders([0, 5], [3, 10]);
testBothOrders([0, 5], [3, 4]);
testBothOrders([0, 5], [5, 10]);
testBothOrders([0, 5], [6, 10], false);
testBothOrders([0, 5], [-1, 1]);
testBothOrders([0, 5], [-1, 0]);
testBothOrders([0, 5], [-2, -1], false);
});
describe('testing isOverlapping', () => {
testBothOrders([0, 5], [3, 10])
testBothOrders([0, 5], [3, 4])
testBothOrders([0, 5], [5, 10])
testBothOrders([0, 5], [6, 10], false)
testBothOrders([0, 5], [-1, 1])
testBothOrders([0, 5], [-1, 0])
testBothOrders([0, 5], [-2, -1], false)
})
function testBothOrders(a: Range, b: Range, result = true) {
it(`test is overlapping ${a} ${b}`, () => {
expect(isOverlapping(a, b)).toBe(result);
expect(isOverlapping(b, a)).toBe(result);
});
expect(isOverlapping(a, b)).toBe(result)
expect(isOverlapping(b, a)).toBe(result)
})
}