diff --git a/tests/web.rs b/tests/web.rs index abfa5e1..0fa6fcb 100644 --- a/tests/web.rs +++ b/tests/web.rs @@ -1,7 +1,7 @@ #![cfg(target_arch = "wasm32")] +use corsace_parser; use wasm_bindgen_test::*; -use wasm_replay_parser_rs; use web_time::Instant; // Since this library is for npm, the line below is not needed. @@ -28,14 +28,14 @@ fn pass() { #[wasm_bindgen_test] fn test_parse_beatmap() { let mut beatmap = include_bytes!("./beatmap.osu").to_owned(); - let result = wasm_replay_parser_rs::parse_beatmap(&mut beatmap); + let result = corsace_parser::parse_beatmap(&mut beatmap); assert!(result.is_ok()); } #[wasm_bindgen_test] fn test_parse_replay() { let mut replay = include_bytes!("./replay.osr").to_owned(); - let result = wasm_replay_parser_rs::parse_replay(&mut replay); + let result = corsace_parser::parse_replay(&mut replay); assert!(result.is_ok()); } @@ -48,7 +48,7 @@ fn bench_parse_beatmap() { let mut durations = Vec::new(); for _ in 0..100 { let start = Instant::now(); - let result = wasm_replay_parser_rs::parse_beatmap(&mut beatmap); + let result = corsace_parser::parse_beatmap(&mut beatmap); assert!(result.is_ok()); let duration = start.elapsed(); durations.push(duration); @@ -73,7 +73,7 @@ fn bench_parse_replay() { let mut durations = Vec::new(); for _ in 0..100 { let start = Instant::now(); - let result = wasm_replay_parser_rs::parse_replay(&mut replay); + let result = corsace_parser::parse_replay(&mut replay); assert!(result.is_ok()); let duration = start.elapsed(); durations.push(duration); diff --git a/www/package-lock.json b/www/package-lock.json index b0a3cce..cd177f6 100644 --- a/www/package-lock.json +++ b/www/package-lock.json @@ -1,13 +1,13 @@ { - "name": "create-wasm-app", + "name": "corsace-parser", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "create-wasm-app", + "name": "corsace-parser", "version": "0.1.0", - "license": "(MIT OR Apache-2.0)", + "license": "MIT", "dependencies": { "replay-parser": "file:../pkg" }, @@ -23,8 +23,9 @@ } }, "../pkg": { - "name": "wasm-replay-parser-rs", - "version": "0.2.0" + "name": "corsace-parser", + "version": "0.2.0", + "license": "MIT" }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.7",