forked from matrix/element-web
Update tests for new platform layout
This commit is contained in:
parent
0c428efea0
commit
0e580635eb
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||||
/* joining.js: tests for the various paths when joining a room */
|
/* joining.js: tests for the various paths when joining a room */
|
||||||
|
|
||||||
import PlatformPeg from 'matrix-react-sdk/lib/PlatformPeg';
|
import PlatformPeg from 'matrix-react-sdk/lib/PlatformPeg';
|
||||||
import Platform from '../../src/vector/platform';
|
import WebPlatform from '../../src/vector/platform/WebPlatform';
|
||||||
|
|
||||||
require('skin-sdk');
|
require('skin-sdk');
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ describe('joining a room', function() {
|
||||||
localStorage.setItem("mx_access_token", ACCESS_TOKEN );
|
localStorage.setItem("mx_access_token", ACCESS_TOKEN );
|
||||||
localStorage.setItem("mx_user_id", USER_ID);
|
localStorage.setItem("mx_user_id", USER_ID);
|
||||||
|
|
||||||
PlatformPeg.set(new Platform());
|
PlatformPeg.set(new WebPlatform());
|
||||||
|
|
||||||
const mc = (
|
const mc = (
|
||||||
<MatrixChat config={{}}
|
<MatrixChat config={{}}
|
||||||
|
|
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||||
/* loading.js: test the myriad paths we have for loading the application */
|
/* loading.js: test the myriad paths we have for loading the application */
|
||||||
|
|
||||||
import PlatformPeg from 'matrix-react-sdk/lib/PlatformPeg';
|
import PlatformPeg from 'matrix-react-sdk/lib/PlatformPeg';
|
||||||
import Platform from '../../src/vector/platform';
|
import WebPlatform from '../../src/vector/platform/WebPlatform';
|
||||||
|
|
||||||
import 'skin-sdk';
|
import 'skin-sdk';
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ describe('loading:', function() {
|
||||||
default_is_url: DEFAULT_IS_URL,
|
default_is_url: DEFAULT_IS_URL,
|
||||||
}, opts.config || {});
|
}, opts.config || {});
|
||||||
|
|
||||||
PlatformPeg.set(new Platform());
|
PlatformPeg.set(new WebPlatform());
|
||||||
|
|
||||||
const params = parseQs(windowLocation);
|
const params = parseQs(windowLocation);
|
||||||
matrixChat = ReactDOM.render(
|
matrixChat = ReactDOM.render(
|
||||||
|
|
Loading…
Reference in New Issue