mirror of
https://github.com/denoland/deno.git
synced 2025-09-14 22:55:03 +00:00
build: use workflows for bumping versions and cargo publishing on the CI (#13995)
This commit is contained in:
parent
f61b2c0b11
commit
5cab3e7dba
13 changed files with 306 additions and 74 deletions
|
@ -1155,6 +1155,7 @@ fn legacy_main_resolve(
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::compat::STD_URL_STR;
|
||||
|
||||
fn testdir(name: &str) -> PathBuf {
|
||||
let c = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
|
@ -1233,8 +1234,10 @@ mod tests {
|
|||
fn builtin_http() {
|
||||
let cwd = testdir("basic");
|
||||
let main = Url::from_file_path(cwd.join("main.js")).unwrap();
|
||||
let expected =
|
||||
Url::parse("https://deno.land/std@0.132.0/node/http.ts").unwrap();
|
||||
let expected = Url::parse(STD_URL_STR)
|
||||
.unwrap()
|
||||
.join("node/http.ts")
|
||||
.unwrap();
|
||||
|
||||
let actual = node_resolve("http", main.as_str(), &cwd).unwrap();
|
||||
assert!(matches!(actual, ResolveResponse::Esm(_)));
|
||||
|
|
|
@ -20,7 +20,7 @@ pub use esm_resolver::NodeEsmResolver;
|
|||
// each release, a better mechanism is preferable, but it's a quick and dirty
|
||||
// solution to avoid printing `X-Deno-Warning` headers when the compat layer is
|
||||
// downloaded
|
||||
static STD_URL_STR: &str = "https://deno.land/std@0.132.0/";
|
||||
pub(crate) static STD_URL_STR: &str = "https://deno.land/std@0.132.0/";
|
||||
|
||||
static SUPPORTED_MODULES: &[&str] = &[
|
||||
"assert",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue