Make the wasm-pack tests actually run
This commit is contained in:
parent
c045750e06
commit
4617e2e5ba
10
ci/travis.sh
10
ci/travis.sh
|
@ -65,16 +65,14 @@ build_and_test_nonwasm() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build_and_test_wasm() {
|
build_and_test_wasm() {
|
||||||
channel build --features wasmbind -v
|
|
||||||
|
|
||||||
touch tests/wasm.rs # ensure rebuild happens so TZ / NOW take effect
|
touch tests/wasm.rs # ensure rebuild happens so TZ / NOW take effect
|
||||||
TZ=ACST-9:30 NOW=$(date +%s) wasm-pack test --node
|
TZ=ACST-9:30 NOW=$(date +%s) wasm-pack test --node -- --features wasmbind
|
||||||
touch tests/wasm.rs
|
touch tests/wasm.rs
|
||||||
TZ=EST4 NOW=$(date +%s) wasm-pack test --node
|
TZ=EST4 NOW=$(date +%s) wasm-pack test --node -- --features wasmbind
|
||||||
touch tests/wasm.rs
|
touch tests/wasm.rs
|
||||||
TZ=UTC0 NOW=$(date +%s) wasm-pack test --node
|
TZ=UTC0 NOW=$(date +%s) wasm-pack test --node -- --features wasmbind
|
||||||
touch tests/wasm.rs
|
touch tests/wasm.rs
|
||||||
TZ=Asia/Katmandu NOW=$(date +%s) wasm-pack test --node
|
TZ=Asia/Katmandu NOW=$(date +%s) wasm-pack test --node -- --features wasmbind
|
||||||
}
|
}
|
||||||
|
|
||||||
build_only() {
|
build_only() {
|
||||||
|
|
|
@ -6,8 +6,6 @@ mod test {
|
||||||
use self::chrono::prelude::*;
|
use self::chrono::prelude::*;
|
||||||
use self::wasm_bindgen_test::*;
|
use self::wasm_bindgen_test::*;
|
||||||
|
|
||||||
use std::env;
|
|
||||||
|
|
||||||
#[wasm_bindgen_test]
|
#[wasm_bindgen_test]
|
||||||
fn now() {
|
fn now() {
|
||||||
let utc: DateTime<Utc> = Utc::now();
|
let utc: DateTime<Utc> = Utc::now();
|
||||||
|
|
Loading…
Reference in New Issue