Fix wasm test failure gate unknown import
parent
3fa06eeb99
commit
62eeb3707f
|
@ -40,7 +40,6 @@ http = "0.2.1"
|
||||||
tracing-subscriber = "0.2.7"
|
tracing-subscriber = "0.2.7"
|
||||||
tempfile = "3.1.0"
|
tempfile = "3.1.0"
|
||||||
mockito = "0.25.1"
|
mockito = "0.25.1"
|
||||||
url = "2.1.1"
|
|
||||||
|
|
||||||
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
||||||
tokio = { version = "0.2.21", features = ["rt-threaded", "macros"] }
|
tokio = { version = "0.2.21", features = ["rt-threaded", "macros"] }
|
||||||
|
|
|
@ -1839,7 +1839,7 @@ impl BaseClient {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
use crate::identifiers::{RoomId, UserId};
|
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::events::{AnyRoomEventStub, EventJson};
|
||||||
use matrix_sdk_common_macros::async_trait;
|
use matrix_sdk_common_macros::async_trait;
|
||||||
use matrix_sdk_test::{async_test, test_json, EventBuilder, EventsJson};
|
use matrix_sdk_test::{async_test, test_json, EventBuilder, EventsJson};
|
||||||
|
@ -1847,6 +1847,9 @@ mod test {
|
||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
use tempfile::tempdir;
|
use tempfile::tempdir;
|
||||||
|
|
||||||
|
#[cfg(feature = "messages")]
|
||||||
|
use crate::JsonStore;
|
||||||
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
use wasm_bindgen_test::*;
|
use wasm_bindgen_test::*;
|
||||||
|
|
||||||
|
|
|
@ -34,14 +34,14 @@ use crate::events::room::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::events::{
|
use crate::events::{
|
||||||
Algorithm, AnyMessageEventContent, AnyRoomEventStub, AnyStateEventStub,
|
Algorithm, AnyRoomEventStub, AnyStateEventStub, AnyStrippedStateEventStub, EventType,
|
||||||
AnyStrippedStateEventStub, EventJson, EventType, StateEventStub, StrippedStateEventStub,
|
StateEventStub, StrippedStateEventStub,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "messages")]
|
#[cfg(feature = "messages")]
|
||||||
use crate::events::{
|
use crate::events::{
|
||||||
room::redaction::{RedactionEvent, RedactionEventStub},
|
room::redaction::{RedactionEvent, RedactionEventStub},
|
||||||
AnyMessageEventStub,
|
AnyMessageEventContent, AnyMessageEventStub, EventJson,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::identifiers::{RoomAliasId, RoomId, UserId};
|
use crate::identifiers::{RoomAliasId, RoomId, UserId};
|
||||||
|
|
Loading…
Reference in New Issue