Fix wasm test failure gate unknown import

This commit is contained in:
Devin R 2020-07-04 19:34:45 -04:00
parent 3fa06eeb99
commit 62eeb3707f
3 changed files with 7 additions and 5 deletions

View file

@ -40,7 +40,6 @@ http = "0.2.1"
tracing-subscriber = "0.2.7"
tempfile = "3.1.0"
mockito = "0.25.1"
url = "2.1.1"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
tokio = { version = "0.2.21", features = ["rt-threaded", "macros"] }

View file

@ -1839,7 +1839,7 @@ impl BaseClient {
#[cfg(test)]
mod test {
use crate::identifiers::{RoomId, UserId};
use crate::{BaseClient, BaseClientConfig, JsonStore, Session};
use crate::{BaseClient, BaseClientConfig, Session};
use matrix_sdk_common::events::{AnyRoomEventStub, EventJson};
use matrix_sdk_common_macros::async_trait;
use matrix_sdk_test::{async_test, test_json, EventBuilder, EventsJson};
@ -1847,6 +1847,9 @@ mod test {
use std::convert::TryFrom;
use tempfile::tempdir;
#[cfg(feature = "messages")]
use crate::JsonStore;
#[cfg(target_arch = "wasm32")]
use wasm_bindgen_test::*;

View file

@ -34,14 +34,14 @@ use crate::events::room::{
};
use crate::events::{
Algorithm, AnyMessageEventContent, AnyRoomEventStub, AnyStateEventStub,
AnyStrippedStateEventStub, EventJson, EventType, StateEventStub, StrippedStateEventStub,
Algorithm, AnyRoomEventStub, AnyStateEventStub, AnyStrippedStateEventStub, EventType,
StateEventStub, StrippedStateEventStub,
};
#[cfg(feature = "messages")]
use crate::events::{
room::redaction::{RedactionEvent, RedactionEventStub},
AnyMessageEventStub,
AnyMessageEventContent, AnyMessageEventStub, EventJson,
};
use crate::identifiers::{RoomAliasId, RoomId, UserId};