From f82cbdda95edb583550b575552fd6393fdf3a7a1 Mon Sep 17 00:00:00 2001 From: Michael Herzner Date: Sun, 17 Nov 2024 22:07:32 +0100 Subject: [PATCH] chore: update test case after merge from main --- api/src/publish.rs | 6 +++--- api/testdata/tarballs/{graph_error => cjs_import}/jsr.json | 0 api/testdata/tarballs/{graph_error => cjs_import}/mod.ts | 0 api/testdata/tarballs/{graph_error => cjs_import}/other.cjs | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename api/testdata/tarballs/{graph_error => cjs_import}/jsr.json (100%) rename api/testdata/tarballs/{graph_error => cjs_import}/mod.ts (100%) rename api/testdata/tarballs/{graph_error => cjs_import}/other.cjs (100%) diff --git a/api/src/publish.rs b/api/src/publish.rs index 3ed34f84..0c80a045 100644 --- a/api/src/publish.rs +++ b/api/src/publish.rs @@ -1310,13 +1310,13 @@ pub mod tests { } #[tokio::test] - async fn graph_error() { + async fn cjs_import() { let t = TestSetup::new().await; - let bytes = create_mock_tarball("graph_error"); + let bytes = create_mock_tarball("cjs_import"); let task = process_tarball_setup(&t, bytes).await; assert_eq!(task.status, PublishingTaskStatus::Failure, "{task:#?}"); let error = task.error.unwrap(); - assert_eq!(error.code, "graphError"); + assert_eq!(error.code, "commonJs"); } #[tokio::test] diff --git a/api/testdata/tarballs/graph_error/jsr.json b/api/testdata/tarballs/cjs_import/jsr.json similarity index 100% rename from api/testdata/tarballs/graph_error/jsr.json rename to api/testdata/tarballs/cjs_import/jsr.json diff --git a/api/testdata/tarballs/graph_error/mod.ts b/api/testdata/tarballs/cjs_import/mod.ts similarity index 100% rename from api/testdata/tarballs/graph_error/mod.ts rename to api/testdata/tarballs/cjs_import/mod.ts diff --git a/api/testdata/tarballs/graph_error/other.cjs b/api/testdata/tarballs/cjs_import/other.cjs similarity index 100% rename from api/testdata/tarballs/graph_error/other.cjs rename to api/testdata/tarballs/cjs_import/other.cjs