scroll/src/common/types.ts

27 lines
893 B
JavaScript
Raw Normal View History

2023-11-10 08:36:18 -05:00
// ----------------------------------------------------------------------------
// General types
// ----------------------------------------------------------------------------
export interface IPoint {
x: number;
y: number;
}
2023-11-10 08:36:18 -05:00
// ----------------------------------------------------------------------------
// Testing
// ----------------------------------------------------------------------------
/**
* The shared test interface, so tests can be run by both runtimes
*/
export interface ITestBase {
assertEquals(actual: unknown, expected: unknown): void;
assertExists(actual: unknown): void;
assertFalse(actual: boolean): void;
2023-11-10 08:36:18 -05:00
assertInstanceOf(actual: unknown, expectedType: any): void;
assertNotEquals(actual: unknown, expected: unknown): void;
assertStrictEquals(actual: unknown, expected: unknown): void;
2023-11-10 08:36:18 -05:00
assertTrue(actual: boolean): void;
testSuite(testObj: any): void;
2023-11-10 08:36:18 -05:00
}