Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Aug 31, 2023
1 parent 2346ba8 commit a9012a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/testdata/emit/json.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { default as data } from "./data.json" assert {
type: "json"
export { default as data } from "./data.json" with {
type: "json"
};
2 changes: 1 addition & 1 deletion src/testdata/source/json.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { default as data } from "./data.json" assert {
type: "json"
type: "json"
};
4 changes: 2 additions & 2 deletions src/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@ mod tests {
let module = eszip.get_module("file:///json.ts").unwrap();
assert_eq!(module.specifier, "file:///json.ts");
let source = module.source().await.unwrap();
assert_matches_file!(source, "./testdata/source/json.ts");
assert_matches_file!(source, "./testdata/emit/json.ts");
let _source_map = module.source_map().await.unwrap();
assert_eq!(module.kind, ModuleKind::JavaScript);
let module = eszip.get_module("file:///data.json").unwrap();
Expand Down Expand Up @@ -1483,7 +1483,7 @@ mod tests {
let module = eszip.get_module("file:///json.ts").unwrap();
assert_eq!(module.specifier, "file:///json.ts");
let source = module.source().await.unwrap();
assert_matches_file!(source, "./testdata/emit/json.ts");
assert_matches_file!(source, "./testdata/source/json.ts");
let _source_map = module.source_map().await.unwrap();
assert_eq!(module.kind, ModuleKind::JavaScript);
let module = eszip.get_module("file:///data.json").unwrap();
Expand Down

0 comments on commit a9012a4

Please sign in to comment.