mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-08-01 04:21:55 +00:00
Remove add_headless
test
We've got tons of other headless tests, no need for this particular one to stick around!
This commit is contained in:
@@ -1,38 +1,5 @@
|
||||
use super::project;
|
||||
|
||||
#[test]
|
||||
fn add_headless() {
|
||||
project()
|
||||
.headless(true)
|
||||
.file(
|
||||
"src/lib.rs",
|
||||
r#"
|
||||
#![feature(use_extern_macros)]
|
||||
extern crate wasm_bindgen;
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn add(a: u32, b: u32) -> u32 {
|
||||
a + b
|
||||
}
|
||||
"#,
|
||||
)
|
||||
.file(
|
||||
"test.js",
|
||||
r#"
|
||||
import * as assert from "assert";
|
||||
import * as wasm from "./out";
|
||||
|
||||
export function test() {
|
||||
console.log("start `add_headless` test");
|
||||
assert.strictEqual(wasm.add(1, 2), 3);
|
||||
console.log("end `add_headless` test");
|
||||
}
|
||||
"#,
|
||||
)
|
||||
.test();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn no_std() {
|
||||
project()
|
||||
|
Reference in New Issue
Block a user