You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Convert the more complicated CommonJS exports to ES6-style
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user