diff --git a/src/EventEmitter.js b/src/EventEmitter.js index 24d03ec3..94da0cde 100644 --- a/src/EventEmitter.js +++ b/src/EventEmitter.js @@ -36,7 +36,7 @@ export class EventEmitter { onLastSubscriptionRemoved(name) {} } -//#ifdef TESTS + export function tests() { return { test_on_off(assert) { @@ -72,4 +72,3 @@ export function tests() { } }; } -//#endif diff --git a/src/Platform.js b/src/Platform.js index bfdfbd96..d8b4a7a9 100644 --- a/src/Platform.js +++ b/src/Platform.js @@ -1,5 +1 @@ -//#ifdef PLATFORM_GNOME -//##export {default} from "./ui/gnome/GnomePlatform.js"; -//#else export {WebPlatform as Platform} from "./ui/web/WebPlatform.js"; -//#endif diff --git a/src/matrix/room/timeline/EventKey.js b/src/matrix/room/timeline/EventKey.js index 5f34a66d..885efba0 100644 --- a/src/matrix/room/timeline/EventKey.js +++ b/src/matrix/room/timeline/EventKey.js @@ -49,7 +49,6 @@ export class EventKey { } } -//#ifdef TESTS export function xtests() { const fragmentIdComparer = {compare: (a, b) => a - b}; @@ -156,4 +155,3 @@ export function xtests() { } }; } -//#endif diff --git a/src/matrix/room/timeline/FragmentIdComparer.js b/src/matrix/room/timeline/FragmentIdComparer.js index 24073dbe..da3b2243 100644 --- a/src/matrix/room/timeline/FragmentIdComparer.js +++ b/src/matrix/room/timeline/FragmentIdComparer.js @@ -180,7 +180,6 @@ export class FragmentIdComparer { } } -//#ifdef TESTS export function tests() { return { test_1_island_3_fragments(assert) { @@ -297,4 +296,3 @@ export function tests() { } } } -//#endif diff --git a/src/matrix/room/timeline/persistence/GapWriter.js b/src/matrix/room/timeline/persistence/GapWriter.js index f6939fae..36bb1256 100644 --- a/src/matrix/room/timeline/persistence/GapWriter.js +++ b/src/matrix/room/timeline/persistence/GapWriter.js @@ -178,7 +178,6 @@ export class GapWriter { } } -//#ifdef TESTS //import MemoryStorage from "../storage/memory/MemoryStorage.js"; export function xtests() { @@ -277,4 +276,3 @@ export function xtests() { }, } } -//#endif diff --git a/src/matrix/room/timeline/persistence/SyncWriter.js b/src/matrix/room/timeline/persistence/SyncWriter.js index 103bb31f..92907b5a 100644 --- a/src/matrix/room/timeline/persistence/SyncWriter.js +++ b/src/matrix/room/timeline/persistence/SyncWriter.js @@ -134,7 +134,6 @@ export class SyncWriter { } } -//#ifdef TESTS //import MemoryStorage from "../storage/memory/MemoryStorage.js"; export function xtests() { @@ -233,4 +232,3 @@ export function xtests() { }, } } -//#endif diff --git a/src/observable/list/SortedMapList.js b/src/observable/list/SortedMapList.js index 539bb65f..154febc3 100644 --- a/src/observable/list/SortedMapList.js +++ b/src/observable/list/SortedMapList.js @@ -113,7 +113,6 @@ export class SortedMapList extends BaseObservableList { } } -//#ifdef TESTS import {ObservableMap} from "../map/ObservableMap.js"; export function tests() { @@ -250,4 +249,3 @@ export function tests() { }, } } -//#endif diff --git a/src/observable/map/ObservableMap.js b/src/observable/map/ObservableMap.js index cbdd7b3c..cfc366ab 100644 --- a/src/observable/map/ObservableMap.js +++ b/src/observable/map/ObservableMap.js @@ -56,7 +56,6 @@ export class ObservableMap extends BaseObservableMap { } } -//#ifdef TESTS export function tests() { return { test_initial_values(assert) { @@ -152,4 +151,3 @@ export function tests() { }, } } -//#endif