Skip to content

Commit 0e58063

Browse files
committed
Update tests for new platform layout
1 parent 0c428ef commit 0e58063

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎test/app-tests/joining.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
/* joining.js: tests for the various paths when joining a room */
1818

1919
import PlatformPeg from 'matrix-react-sdk/lib/PlatformPeg';
20-
import Platform from '../../src/vector/platform';
20+
import WebPlatform from '../../src/vector/platform/WebPlatform';
2121

2222
require('skin-sdk');
2323

@@ -88,7 +88,7 @@ describe('joining a room', function() {
8888
localStorage.setItem("mx_access_token", ACCESS_TOKEN );
8989
localStorage.setItem("mx_user_id", USER_ID);
9090

91-
PlatformPeg.set(new Platform());
91+
PlatformPeg.set(new WebPlatform());
9292

9393
const mc = (
9494
<MatrixChat config={{}}

‎test/app-tests/loading.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
/* loading.js: test the myriad paths we have for loading the application */
1818

1919
import PlatformPeg from 'matrix-react-sdk/lib/PlatformPeg';
20-
import Platform from '../../src/vector/platform';
20+
import WebPlatform from '../../src/vector/platform/WebPlatform';
2121

2222
import 'skin-sdk';
2323

@@ -151,7 +151,7 @@ describe('loading:', function() {
151151
default_is_url: DEFAULT_IS_URL,
152152
}, opts.config || {});
153153

154-
PlatformPeg.set(new Platform());
154+
PlatformPeg.set(new WebPlatform());
155155

156156
const params = parseQs(windowLocation);
157157
matrixChat = ReactDOM.render(

0 commit comments

Comments
 (0)