Convert the more complicated CommonJS exports to ES6-style

This commit is contained in:
Travis Ralston
2019-12-22 21:01:03 -07:00
parent 344dac4fb9
commit 4aec432b30
14 changed files with 91 additions and 86 deletions
+5 -4
View File
@@ -1,5 +1,6 @@
/*
Copyright (c) 2008-2015 Pivotal Labs
Copyright 2019 The Matrix.org Foundation C.I.C.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -411,10 +412,10 @@ j$.MockDate = function() {
return MockDate;
}();
const clock = new j$.Clock(global, function() { return new j$.DelayedFunctionScheduler(); }, new j$.MockDate(global));
const _clock = new j$.Clock(global, function() { return new j$.DelayedFunctionScheduler(); }, new j$.MockDate(global));
module.exports.clock = function() {
return clock;
};
export function clock() {
return _clock;
}